Code cleanup on the shot validation path
[Project_algorithmic_C.git] / lib / othello.h
index 7146617a7a4136d3e2684cc0b6ece662597beea4..9eb1c8cd88e3dc1be5b12952f25a314eb610d8e0 100644 (file)
@@ -45,6 +45,7 @@ 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);
 
+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]);