Board hash code. More...
Board hash code.
Definition at line 579 of file GoBoard.h.
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | START_INDEX_TOPLAY >= | 0 | ) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | ) | [private] |
Referenced by GetInclToPlay(), XorStone(), and XorWinKo().
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | END_INDEX_TOPLAY | , | |
START_INDEX_TOPLAY | ||||
) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | START_INDEX_STONES | , | |
END_INDEX_TOPLAY | ||||
) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | END_INDEX_STONES | , | |
START_INDEX_STONES | ||||
) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | END_INDEX_WINKO | , | |
START_INDEX_WINKO | ||||
) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | START_INDEX_CAPTURES | , | |
END_INDEX_WINKO | ||||
) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | END_INDEX_CAPTURES | , | |
START_INDEX_CAPTURES | ||||
) | [private] |
GoBoard::HashCode::BOOST_STATIC_ASSERT | ( | START_INDEX_WINKO+MAX_KOLEVEL *3-1<= | END_INDEX_WINKO | ) | [private] |
void GoBoard::HashCode::Clear | ( | ) |
Definition at line 1084 of file GoBoard.h.
References SgHash< N >::Clear(), and m_hash.
Referenced by GoBoard::Init().
const SgHashCode & GoBoard::HashCode::Get | ( | ) | const |
SgHashCode GoBoard::HashCode::GetInclToPlay | ( | SgBlackWhite | toPlay | ) | const |
Definition at line 1094 of file GoBoard.h.
References BOOST_STATIC_ASSERT(), END_INDEX_TOPLAY, m_hash, SG_ASSERTRANGE, SG_BLACK, SG_WHITE, START_INDEX_TOPLAY, and SgHashUtil::XorZobrist().
Referenced by GoBoard::GetHashCodeInclToPlay().
void GoBoard::HashCode::XorCaptured | ( | int | moveNumber, | |
SgPoint | firstCapturedStone | |||
) |
Definition at line 1105 of file GoBoard.h.
References END_INDEX_CAPTURES, m_hash, SG_ASSERTRANGE, SG_MAXPOINT, START_INDEX_CAPTURES, and SgHashUtil::XorZobrist().
Referenced by GoBoard::Play().
void GoBoard::HashCode::XorStone | ( | SgPoint | p, | |
SgBlackWhite | c | |||
) |
Definition at line 1113 of file GoBoard.h.
References BOOST_STATIC_ASSERT(), END_INDEX_STONES, m_hash, SG_ASSERT_BOARDRANGE, SG_ASSERT_BW, SG_ASSERTRANGE, SG_BLACK, SG_MAXPOINT, SG_WHITE, START_INDEX_STONES, and SgHashUtil::XorZobrist().
Referenced by GoBoard::Init(), GoBoard::KillBlock(), and GoBoard::Play().
void GoBoard::HashCode::XorWinKo | ( | int | level, | |
SgBlackWhite | c | |||
) |
Definition at line 1124 of file GoBoard.h.
References BOOST_STATIC_ASSERT(), END_INDEX_WINKO, m_hash, GoBoard::MAX_KOLEVEL, SG_ASSERT, SG_ASSERT_BW, SG_ASSERTRANGE, SG_BLACK, SG_MAXPOINT, SG_WHITE, START_INDEX_WINKO, and SgHashUtil::XorZobrist().
Referenced by GoBoard::CheckKo().
const int GoBoard::HashCode::END_INDEX_CAPTURES = 3 * SG_MAXPOINT + 63 [static, private] |
Definition at line 604 of file GoBoard.h.
Referenced by XorCaptured().
const int GoBoard::HashCode::END_INDEX_STONES = 2 * SG_MAXPOINT [static, private] |
Definition at line 599 of file GoBoard.h.
Referenced by XorStone().
const int GoBoard::HashCode::END_INDEX_TOPLAY = 2 [static, private] |
Definition at line 597 of file GoBoard.h.
Referenced by GetInclToPlay().
const int GoBoard::HashCode::END_INDEX_WINKO = 2 * SG_MAXPOINT + SG_MAX_SIZE + 1 [static, private] |
Definition at line 601 of file GoBoard.h.
Referenced by XorWinKo().
SgHashCode GoBoard::HashCode::m_hash [private] |
Definition at line 620 of file GoBoard.h.
Referenced by Clear(), Get(), GetInclToPlay(), XorCaptured(), XorStone(), and XorWinKo().
const int GoBoard::HashCode::START_INDEX_CAPTURES = 2 * SG_MAXPOINT + SG_MAX_SIZE + 2 [static, private] |
Definition at line 603 of file GoBoard.h.
Referenced by XorCaptured().
const int GoBoard::HashCode::START_INDEX_STONES = 3 [static, private] |
Definition at line 598 of file GoBoard.h.
Referenced by XorStone().
const int GoBoard::HashCode::START_INDEX_TOPLAY = 1 [static, private] |
Definition at line 596 of file GoBoard.h.
Referenced by GetInclToPlay().
const int GoBoard::HashCode::START_INDEX_WINKO = 2 * SG_MAXPOINT + 1 [static, private] |
Definition at line 600 of file GoBoard.h.
Referenced by XorWinKo().