diff options
| author | Charlie Blake | 2018-02-24 11:12:45 +0000 |
|---|---|---|
| committer | GitHub | 2018-02-24 11:12:45 +0000 |
| commit | 2db3586f42af5174a14e8a6f693334f3f4f75e14 (patch) | |
| tree | 4983a8a72065056e693b418510e64abdbdb0f2b7 /src/main/game/game_state.h | |
| parent | Merge pull request #40 from thecharlesblake/test-optimisations (diff) | |
| parent | Add card just moved optimisation to game logic (diff) | |
| download | metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.tar.gz metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.zip | |
Merge pull request #41 from thecharlesblake/profile-improve
Profile improve
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; |
