select player + roundcount helper done

This commit is contained in:
Odweta
2026-02-17 16:43:25 +01:00
parent 69390eb187
commit 153ca9e50c
3 changed files with 47 additions and 2 deletions
+17
View File
@@ -67,4 +67,21 @@ typedef enum {
// initializes the board with the default configuration of pieces
bool init_board(board_t *board);
// selects the player to currently play
// if it is the first round, it selects white
void select_player(player_e *player, unsigned int round_count);
// listens for a command to make a move by the currently playing player
bool get_move(move_t *move);
// performs the move if is it possible
bool perform_move(player_e player, move_t move);
// checks for captures, prommotions and mates
end_condition_e check_edge_cases(board_t board);
// if there is one of the mates, end the game and show who has won
void announce_results(player_e player);
#endif // CHESS_H