Uses previously-generated opening moves that have been recorded to prevent re-computing them. More...
Public Member Functions
|Loads cached opening moves from WolveCacheBook.txt in share directory. |
|bool||Exists (const HexState &state) const|
|HexPoint &||operator (const HexState &state)|
|std::size_t||Size () const|
Private Member Functions
|void||ParseFile (std::ifstream &inFile)|
|std::vector< HexPoint >||ReadPoints (std::istringstream &in) const|
|std::map< hash_t, HexPoint >||m_map|
Uses previously-generated opening moves that have been recorded to prevent re-computing them.
A cache book is just a map of state hashes to HexPoints.
Not using StateMap since may not want same behaviour in rotated positions.
|bool CacheBook::Exists||(||const HexState &||state||)|| const
|void CacheBook::ParseFile||(||std::ifstream &||inFile||)||
|std::vector< HexPoint > CacheBook::ReadPoints||(||std::istringstream &||in||)|| const
|std::size_t CacheBook::Size||(||)|| const