X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fothello.h;h=62fb04a1a8aac5a2fe37ccc7fb00d3ae36495813;hp=628f8e1c1a3a706c62d48b65777e0aefb332a5cb;hb=54f1c58cef6764fdd611eedc267e7491e777c09b;hpb=74e2b93b658575fa792ada51c3bf1cdc3cfde247 diff --git a/lib/othello.h b/lib/othello.h index 628f8e1..62fb04a 100644 --- a/lib/othello.h +++ b/lib/othello.h @@ -20,15 +20,20 @@ #define OTHELLO_H #include "constants.h" +#include "list.h" -/* FIXME: declare and initialize the array here */ -//unsigned int pawns[board_size][board_size]; +struct shots_list { + struct list_head list; + unsigned int*** pawn_array_member; +}; unsigned int current_player(unsigned int round_count); int** init_pawns(unsigned int pawn_array[board_size][board_size]); +bool is_valid_input(int y, int x, unsigned int pawn_array[board_size][board_size]); bool is_box_type(int y, int x, unsigned int pawn_array[board_size][board_size], unsigned int type); +bool is_board_full(unsigned int pawn_array[board_size][board_size]); unsigned int get_box_value(int y, int x, unsigned int pawn_array[board_size][board_size]); int** set_pawn(int y, int x, unsigned int type, unsigned int pawn_array[board_size][board_size]);