Provides random hash codes for Zobrist hashing. More...
#include <SgHash.h>
Public Member Functions | |
SgHashZobrist () | |
const SgHash< N > & | Get (int index) const |
Static Public Member Functions | |
static const SgHashZobrist & | GetTable () |
Global table for this size of hash code. | |
Static Public Attributes | |
static const int | MAX_HASH_INDEX = 1500 |
Hash index. | |
Private Attributes | |
SgArray< SgHash< N > , MAX_HASH_INDEX > | m_hash |
Static Private Attributes | |
static SgHashZobrist | m_globalTable |
Provides random hash codes for Zobrist hashing.
Definition at line 286 of file SgHash.h.
SgHashZobrist< N >::SgHashZobrist | ( | ) |
Definition at line 317 of file SgHash.h.
References SgHashZobrist< N >::m_hash, and SgHashZobrist< N >::MAX_HASH_INDEX.
const SgHash<N>& SgHashZobrist< N >::Get | ( | int | index | ) | const |
Definition at line 299 of file SgHash.h.
References SgHashZobrist< N >::m_hash.
const SgHashZobrist< N > & SgHashZobrist< N >::GetTable | ( | ) | [static] |
Global table for this size of hash code.
Definition at line 324 of file SgHash.h.
References SgHashZobrist< N >::m_globalTable.
SgHashZobrist< N > SgHashZobrist< N >::m_globalTable [static, private] |
Definition at line 305 of file SgHash.h.
Referenced by SgHashZobrist< N >::GetTable().
SgArray<SgHash<N>,MAX_HASH_INDEX> SgHashZobrist< N >::m_hash [private] |
Definition at line 307 of file SgHash.h.
Referenced by SgHashZobrist< N >::Get(), and SgHashZobrist< N >::SgHashZobrist().
const int SgHashZobrist< N >::MAX_HASH_INDEX = 1500 [static] |
Hash index.
The hash index ranges from [0..MAX_HASH_INDEX-1]. For board games with black and white pieces, MAX_HASH_INDEX needs to be bigger than twice the number of points on the board. It's up to the client to map points to this range. 2 * SG_MAXPOINT, plus capture hash
Definition at line 295 of file SgHash.h.
Referenced by SgHashZobrist< N >::SgHashZobrist().