X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fothello.h;h=9eb1c8cd88e3dc1be5b12952f25a314eb610d8e0;hb=3243371edb8b286cf832c512e63f302dad6e1de2;hp=dc6784ea58307edfa57ad118eeab1cad9a61b997;hpb=a80646b74eca11c71696dedeb674870437c5bb6f;p=Project_algorithmic_C.git diff --git a/lib/othello.h b/lib/othello.h index dc6784e..9eb1c8c 100644 --- a/lib/othello.h +++ b/lib/othello.h @@ -45,6 +45,10 @@ bool is_board_full(unsigned int pawn_array[board_size][board_size]); unsigned int count_pawns_type(unsigned int pawn_array[board_size][board_size], unsigned int type); -unsigned int valid_shot(int y, int x, unsigned int current_player, unsigned int pawn_array[board_size][board_size]); +bool is_legal_shot(int y, int x, unsigned int current_player, unsigned int pawn_array[board_size][board_size]); +unsigned int valid_shot(int y, int x, unsigned int current_player, unsigned int pawn_array[board_size][board_size]); + +void build_playable_shots_list(unsigned int current_player, struct shots_list_s* shots_list, unsigned int pawn_array[board_size][board_size]); +void free_shots_list(struct shots_list_s* shots_list); #endif /* OTHELLO_H */