Xiangiqgame
AI engine for Xiangqi
|
Stores and manages key-value pairs consisting of a board_state (from a boardstate::ZobristComponent) and results of Minimax calculations performed by boardstate::MinimaxMoveEvaluator. More...
#include <zobrist.hpp>
Public Member Functions | |
TranspositionTable ()=default | |
moveselection::TranspositionTableSearchResult | GetDataAt (KeyType primary_board_state, DepthType remaining_search_depth, std::array< KeyType, NumConfKeys > expected_keys) |
void | RecordData (KeyType primary_board_state, DepthType search_depth, moveselection::MinimaxResultType result_type, moveselection::EqualScoreMoves &similar_moves, const std::array< KeyType, NumConfKeys > &confirmation_keys) |
size_t | size () |
void | IncrementMoveCounter () |
MoveCountType | NumIdleMovesAt (KeyType board_state) |
Private Member Functions | |
MoveCountType | NumMovesSinceLastUseOf (const TranspositionTableEntry< KeyType, NumConfKeys > &tr_table_entry) |
Private Attributes | |
std::unordered_map< KeyType, TranspositionTableEntry< KeyType, NumConfKeys > > | data_ |
MoveCountType | move_counter_ |
Stores and manages key-value pairs consisting of a board_state (from a boardstate::ZobristComponent) and results of Minimax calculations performed by boardstate::MinimaxMoveEvaluator.
Provides read/write access to moveselection::MinimaxMoveEvaluator via a boardstate::ZobristCoordinator.
Definition at line 279 of file zobrist.hpp.
|
default |
|
inline |
Definition at line 286 of file zobrist.hpp.
|
inline |
Definition at line 327 of file zobrist.hpp.
|
inline |
Definition at line 329 of file zobrist.hpp.
|
inlineprivate |
Definition at line 335 of file zobrist.hpp.
|
inline |
Definition at line 308 of file zobrist.hpp.
|
inline |
Definition at line 325 of file zobrist.hpp.
|
private |
Definition at line 280 of file zobrist.hpp.
|
private |
Definition at line 281 of file zobrist.hpp.