summaryrefslogtreecommitdiff
path: root/include/state.h
diff options
context:
space:
mode:
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);