init board update
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user