init board update

This commit is contained in:
Odweta
2026-02-17 17:10:57 +01:00
parent 9dea0555dc
commit b61453e266
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#include "chess.h" #include "chess.h"
#include "util.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 i = 0; i < BOARD_VERTICAL; i++) {
for (int j = 0; j < BOARD_HORIZONTAL; j++) { for (int j = 0; j < BOARD_HORIZONTAL; j++) {
*board[i][j] = BOARD_DEFAULT_CONFIG[i][j]; *board[i][j] = BOARD_DEFAULT_CONFIG[i][j];
+1 -1
View File
@@ -65,7 +65,7 @@ typedef enum {
} end_condition_e; } end_condition_e;
// initializes the board with the default configuration of pieces // 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 // selects the player to currently play
// if it is the first round, it selects white // if it is the first round, it selects white