diff options
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |