X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fothello.h;h=628f8e1c1a3a706c62d48b65777e0aefb332a5cb;hp=7123697e655f5a41c1e30666afd39fefab951ddc;hb=74e2b93b658575fa792ada51c3bf1cdc3cfde247;hpb=2e5c189444a82df0d9127c94322ec4e3b159dcce diff --git a/lib/othello.h b/lib/othello.h index 7123697..628f8e1 100644 --- a/lib/othello.h +++ b/lib/othello.h @@ -21,8 +21,17 @@ #include "constants.h" -int pawn[board_size][board_size] = { - {0, 0} -}; +/* FIXME: declare and initialize the array here */ +//unsigned int pawns[board_size][board_size]; + +unsigned int current_player(unsigned int round_count); + +int** init_pawns(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); +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]); + +unsigned int count_pawn_type(unsigned int pawn_array[board_size][board_size], unsigned int type); #endif /* OTHELLO_H */