From b61453e266af86726317b6423ca64116dd9d5b54 Mon Sep 17 00:00:00 2001 From: Odweta Date: Tue, 17 Feb 2026 17:10:57 +0100 Subject: [PATCH] init board update --- src/chess.c | 2 +- src/chess.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chess.c b/src/chess.c index f895c53..19b3a64 100644 --- a/src/chess.c +++ b/src/chess.c @@ -2,7 +2,7 @@ #include "chess.h" #include "util.h" -bool init_board(board_t *board) { +void init_board(board_t *board) { for (int i = 0; i < BOARD_VERTICAL; i++) { for (int j = 0; j < BOARD_HORIZONTAL; j++) { *board[i][j] = BOARD_DEFAULT_CONFIG[i][j]; diff --git a/src/chess.h b/src/chess.h index 01afab9..8c991e8 100644 --- a/src/chess.h +++ b/src/chess.h @@ -65,7 +65,7 @@ typedef enum { } end_condition_e; // initializes the board with the default configuration of pieces -bool init_board(board_t *board); +void init_board(board_t *board); // selects the player to currently play // if it is the first round, it selects white