aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.h
diff options
context:
space:
mode:
authorthecharlesblake2018-02-24 11:10:54 +0000
committerthecharlesblake2018-02-24 11:10:54 +0000
commit5c168518766037ef7129cc28febdd03afb8e11ee (patch)
tree4983a8a72065056e693b418510e64abdbdb0f2b7 /src/main/game/game_state.h
parentAdd NO_CARD_JUST_MOVED optimisation flag to CMAKE (diff)
downloadmetasol-5c168518766037ef7129cc28febdd03afb8e11ee.tar.gz
metasol-5c168518766037ef7129cc28febdd03afb8e11ee.zip

Add card just moved optimisation to game logic

Diffstat (limited to 'src/main/game/game_state.h')
-rw-r--r--src/main/game/game_state.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/game/game_state.h b/src/main/game/game_state.h
index b403bc7..aeabc10 100644
--- a/src/main/game/game_state.h
+++ b/src/main/game/game_state.h
@@ -49,7 +49,11 @@ public:
void place_card(pile_ref, card);
card take_card(pile_ref);
- std::vector<move> get_legal_moves();
+ std::vector<move> get_legal_moves(
+#ifndef NO_CARD_JUST_MOVED
+ move
+#endif
+ );
// Inspects state
bool is_solved() const;