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