History of moves played from root state to current state. More...
#include <DfpnSolver.hpp>
Public Member Functions | |
DfpnHistory () | |
void | Push (HexPoint m_move, hash_t hash) |
Adds a new state to the history. | |
void | Pop () |
Removes last stated added from history. | |
int | Depth () const |
Returns number of moves played so far. | |
hash_t | LastHash () const |
Hash of last state. | |
HexPoint | LastMove () const |
Move played from parent state to bring us to this state. | |
Private Attributes | |
std::vector< HexPoint > | m_move |
Move played from state. | |
std::vector< hash_t > | m_hash |
Hash of state. |
History of moves played from root state to current state.
Definition at line 313 of file DfpnSolver.hpp.
DfpnHistory::DfpnHistory | ( | ) | [inline] |
Definition at line 342 of file DfpnSolver.hpp.
References INVALID_POINT, m_hash, and m_move.
int DfpnHistory::Depth | ( | ) | const [inline] |
Returns number of moves played so far.
Definition at line 360 of file DfpnSolver.hpp.
References HexAssert, and m_move.
Referenced by DfpnSolver::MID().
hash_t DfpnHistory::LastHash | ( | ) | const [inline] |
HexPoint DfpnHistory::LastMove | ( | ) | const [inline] |
Move played from parent state to bring us to this state.
Definition at line 371 of file DfpnSolver.hpp.
References m_move.
void DfpnHistory::Pop | ( | ) | [inline] |
Removes last stated added from history.
Definition at line 354 of file DfpnSolver.hpp.
References m_hash, and m_move.
Referenced by DfpnSolver::MID().
Adds a new state to the history.
Definition at line 348 of file DfpnSolver.hpp.
References m_hash, and m_move.
Referenced by DfpnSolver::MID().
std::vector<hash_t> DfpnHistory::m_hash [private] |
Hash of state.
Definition at line 339 of file DfpnSolver.hpp.
Referenced by DfpnHistory(), LastHash(), Pop(), and Push().
std::vector<HexPoint> DfpnHistory::m_move [private] |
Move played from state.
Definition at line 336 of file DfpnSolver.hpp.
Referenced by Depth(), DfpnHistory(), LastMove(), Pop(), and Push().