From 0a3b2d825077b5e6c5f1cf4a0dcb13fdfffc0be6 Mon Sep 17 00:00:00 2001 From: tslil Date: Tue, 29 Dec 2020 22:48:53 -0500 Subject: Working on the big wrapper for everything --- include/state.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/state.h') 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); -- cgit v1.3.1