diff options
| author | tslil <tslil@posteo.de> | 2020-12-29 22:48:53 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2020-12-29 22:49:17 -0500 |
| commit | efad4b375574f6cdfffbb79f193cb2bef8c901be (patch) | |
| tree | 08b71fbf1810806e628bbf7f8d7b121d9b7c8443 /include/state.h | |
| parent | 80e06d3c02d82b356cbed995ed3cddc35edb8481 (diff) | |
Working on the big wrapper for everything
Diffstat (limited to 'include/state.h')
| -rw-r--r-- | include/state.h | 10 |
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); |
