select player + roundcount helper done
This commit is contained in:
+17
@@ -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
|
||||
Reference in New Issue
Block a user