From 4a8e687b14b50e3a2a4a3632f6553872f4c301d5 Mon Sep 17 00:00:00 2001 From: tslil Date: Tue, 29 Dec 2020 18:55:06 -0500 Subject: PTN code looks correct, minor tweaks and header guards --- include/state.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/state.h') 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 #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, -- cgit v1.3.1