summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2022-01-22 13:41:30 -0500
committerRobby Zambito <contact@robbyzambito.me>2022-01-22 13:41:30 -0500
commit7bece69333072f1f1fed7653c97226452d9208b6 (patch)
tree4f3fe11e0d773d5ec4fd5f9b19d3344c46252da5
parent9a5125eae7c105b02043ea327ce060884f9858f5 (diff)
Fixed spelling error
-rw-r--r--src/move.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/move.c b/src/move.c
index 2405761..2bdba41 100644
--- a/src/move.c
+++ b/src/move.c
@@ -102,7 +102,7 @@ int apply_move(enum player_color **board, enum player_color current_player,
return 0;
}
- // The move must be below the upper bounds of teh board.
+ // The move must be below the upper bounds of the board.
if (move.row > 8 || move.col > 8) {
return 0;
}
@@ -221,7 +221,8 @@ int apply_move(enum player_color **board, enum player_color current_player,
}
return num_flipped_up + num_flipped_down + num_flipped_left +
- num_flipped_right;
+ num_flipped_right + num_flipped_up_left + num_flipped_up_right +
+ num_flipped_down_left + num_flipped_down_right;
}
SCM scm_apply_move(SCM scm_move, SCM scm_board, SCM scm_player) {