diff options
| author | thecharlesblake | 2018-02-24 11:10:54 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-02-24 11:10:54 +0000 |
| commit | 5c168518766037ef7129cc28febdd03afb8e11ee (patch) | |
| tree | 4983a8a72065056e693b418510e64abdbdb0f2b7 /src/main/game/game_state.h | |
| parent | Add NO_CARD_JUST_MOVED optimisation flag to CMAKE (diff) | |
| download | metasol-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.h | 6 |
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; |
