// // Created by thecharlesblake on 1/10/18. // #ifndef SOLVITAIRE_GLOBAL_CACHE_H #define SOLVITAIRE_GLOBAL_CACHE_H #include #include #include "../game/game_state.h" #include "../game/sol_rules.h" class global_cache { public: explicit global_cache(game_state); bool insert(const std::vector&); bool contains(const std::vector&); friend std::size_t hash_value(card const&); friend std::size_t hash_value(std::vector const&); private: static game_state init_gs; std::unordered_set< std::vector, boost::hash> > u_set; }; #endif //SOLVITAIRE_GLOBAL_CACHE_H