summaryrefslogtreecommitdiff
path: root/src/valid_moves.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/valid_moves.c')
-rw-r--r--src/valid_moves.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/valid_moves.c b/src/valid_moves.c
index bd53833..e8e72f6 100644
--- a/src/valid_moves.c
+++ b/src/valid_moves.c
@@ -31,7 +31,7 @@ bool is_valid_move(const enum player_color current_player,
}
// The move must be below the upper bounds of the board.
- if (move.row >= 8 || move.col >= 8) {
+ if (move.row > 8 || move.col > 8) {
return false;
}