get rid of warnings

This commit is contained in:
Odweta
2026-02-18 15:16:24 +01:00
parent 0e415250e6
commit 44c38667a4
3 changed files with 5 additions and 6 deletions
+4 -2
View File
@@ -159,14 +159,16 @@ bool validate_move(board_t board, move_t move) {
/** TODO: capturing and promotions */
bool perform_move(board_t *board, player_e player, move_t move) {
if (validate_move(*board, move) == true) {
bool move_valid = validate_move(*board, move);
if (move_valid == true) {
*board[move.to.y][move.to.x] = move.piece; // move piece to wanted place
*board[move.from.y][move.from.x] = NONE; // erase the remnants
}
return move_valid;
}
end_condition_e check_edge_cases(board_t board) {
return CHECKMATE;
}
void announce_results(end_condition_e end_condition, player_e player) {