aboutsummaryrefslogtreecommitdiff
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>2026-08-28 19:37:41 +0100
commit0a3b2d825077b5e6c5f1cf4a0dcb13fdfffc0be6 (patch)
tree08b71fbf1810806e628bbf7f8d7b121d9b7c8443 /include/state.h
parente57746530836b24b6d8d20e41239e955fa9e20d4 (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);