summaryrefslogtreecommitdiff
path: root/include/othello_move.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/othello_move.h')
-rw-r--r--include/othello_move.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/othello_move.h b/include/othello_move.h
index 2e2974b..a1f030d 100644
--- a/include/othello_move.h
+++ b/include/othello_move.h
@@ -39,11 +39,14 @@ SCM scm_valid_moves(SCM scm_board, SCM player);
bool has_valid_moves(enum player_color **board,
const enum player_color current_player);
-/* Returns true if the move was valid */
-bool apply_move(enum player_color **board, enum player_color current_player,
- struct move move);
+// Returns non-zero number if the move was valid.
+// Returns the number of flipped tiles.
+int apply_move(enum player_color **board, enum player_color current_player,
+ struct move move);
// Does not actually modify the current board state. Returns a new board with
// the move applied. If the move was not valid, an empty list (nil) is returned.
SCM scm_apply_move(SCM move, SCM board, SCM current_player);
+SCM scm_get_num_flipped_by_move(SCM move, SCM board, SCM current_player);
+
struct move scm_move_to_c_move(SCM scm_move);