diff options
| author | tslil <tslil@posteo.de> | 2020-12-29 18:55:06 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2020-12-29 18:55:06 -0500 |
| commit | 2cd6206fdf56e9c1cc4da0fb66c7e42efd14e18d (patch) | |
| tree | 105efe213f5d69eaa8d9a40531a4ccb72a1c793e /include/state.h | |
| parent | e4c90159344a5717fab873b9a5adb92cc801df23 (diff) | |
PTN code looks correct, minor tweaks and header guards
Diffstat (limited to 'include/state.h')
| -rw-r--r-- | include/state.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/state.h b/include/state.h index 428a998..17d705a 100644 --- a/include/state.h +++ b/include/state.h @@ -1,16 +1,15 @@ #include <stdint.h> #include "enums.h" -static uint8_t board_size = 5; - typedef uint16_t colour_stack_t; typedef uint8_t data_t; -static colour_stack_t colours[36]; +static uint8_t board_size; static data_t celldat[36]; +static colour_stack_t colours[36]; static uint8_t white_flats, black_flats, white_caps, black_caps, turn; -void reset_game(void); +void reset_state(const uint8_t new_board_size); enum ACTION_RESULT try_place(const int8_t location, const enum COLOUR colour, |
