diff options
| author | Charlie Blake | 2018-02-02 19:31:55 +0000 |
|---|---|---|
| committer | GitHub | 2018-02-02 19:31:55 +0000 |
| commit | b74b1f9b0d2b1e6956dc8bae692468a70589a625 (patch) | |
| tree | 6533b4e28e6e750681775b54a3137c3931b9ef07 /src/main/game/global_cache.cpp | |
| parent | Merge pull request #34 from thecharlesblake/reduced_state (diff) | |
| parent | Add flag for toggling pile order symmetry & both (diff) | |
| download | metasol-b74b1f9b0d2b1e6956dc8bae692468a70589a625.tar.gz metasol-b74b1f9b0d2b1e6956dc8bae692468a70589a625.zip | |
Merge pull request #35 from thecharlesblake/symmetry-debug-flags
Symmetry debug flags
Diffstat (limited to 'src/main/game/global_cache.cpp')
| -rw-r--r-- | src/main/game/global_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/game/global_cache.cpp b/src/main/game/global_cache.cpp index 37738f2..5d2fd79 100644 --- a/src/main/game/global_cache.cpp +++ b/src/main/game/global_cache.cpp @@ -84,7 +84,7 @@ void cached_game_state::add_card(card c, const game_state& gs) { #endif switch (gs.rules.build_pol) { -#ifdef SIMPLE_HASH +#ifdef NO_CARD_SYMMETRY default: target.emplace_back(c); break; @@ -152,7 +152,7 @@ std::size_t hasher::combine(std::size_t& seed, std::size_t value) const { size_t hasher::hash_value(card const& c) const { boost::hash<uint8_t> boost_hasher; -#ifdef SIMPLE_HASH +#ifdef NO_CARD_SYMMETRY uint8_t suit_val = c.get_suit(); #else uint8_t suit_val; |
