summaryrefslogtreecommitdiff
path: root/include/state.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-29 22:48:53 -0500
committertslil <tslil@posteo.de>2020-12-29 22:49:17 -0500
commitefad4b375574f6cdfffbb79f193cb2bef8c901be (patch)
tree08b71fbf1810806e628bbf7f8d7b121d9b7c8443 /include/state.h
parent80e06d3c02d82b356cbed995ed3cddc35edb8481 (diff)
Working on the big wrapper for everything
Diffstat (limited to 'include/state.h')
-rw-r--r--include/state.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/state.h b/include/state.h
index 17d705a..218bf71 100644
--- a/include/state.h
+++ b/include/state.h
@@ -7,17 +7,19 @@ typedef uint8_t data_t;
static uint8_t board_size;
static data_t celldat[36];
static colour_stack_t colours[36];
+static enum COLOUR current_colour;
static uint8_t white_flats, black_flats, white_caps, black_caps, turn;
void reset_state(const uint8_t new_board_size);
+void next_turn(void);
-enum ACTION_RESULT
+enum E_RESULT
try_place(const int8_t location, const enum COLOUR colour,
const enum STONE_VARIANT stone);
-enum ACTION_RESULT
+enum E_RESULT
try_move(const int8_t location, const enum MOVE_DIRECTION direction,
const uint8_t steps, const uint8_t drops[5]);
-enum WIN_RESULT
-check_win(const enum COLOUR colour);
+enum E_RESULT
+check_win(void);