This commit is contained in:
LinlyBoi
2023-05-10 16:23:20 +03:00
parent a36c89ad51
commit d01820cb63
3 changed files with 2 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ pub fn get_legal_moves(
} else if *row == max_row {
moves.push(Direction::Down);
}
if (*col > 0 && *col < max_col) {
if *col > 0 && *col < max_col {
moves.push(Direction::Left);
moves.push(Direction::Right);
} else if *col == 0 {