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 a1f030d..6b58bbe 100644
--- a/include/othello_move.h
+++ b/include/othello_move.h
@@ -22,7 +22,9 @@
#include "othello.h"
-struct move prompt_get_move(enum player_color current_player);
+struct move prompt_get_move(enum player_color current_player,
+ struct move *flipped_last_turn,
+ size_t flipped_last_turn_length);
struct move get_scm_move(char *strategy_path);
// True if move is valid for current_player.
@@ -41,8 +43,9 @@ bool has_valid_moves(enum player_color **board,
// 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);
+size_t apply_move(enum player_color **board, enum player_color current_player,
+ struct move move, struct move **flipped_spots,
+ size_t *flipped_spots_capacity);
// 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);