Skip to content

Commit b83ab43

Browse files
authored
fix: place pieces on black cells
1 parent 2119655 commit b83ab43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/game.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub type Board = [[Option<Piece>; BOARD_SIZE]; BOARD_SIZE];
5757
fn default_board() -> Board {
5858
fn fill_row(board: &mut Board, row: usize, player: Player) {
5959
for i in 0..BOARD_SIZE {
60-
if (i + row) % 2 == 0 {
60+
if (i + row) % 2 == 1 {
6161
board[row][i] = Some(Piece {
6262
type_: PieceType::Man,
6363
player,

0 commit comments

Comments
 (0)