詰までの手数を数える. More...
#include <proofTreeDepthDfpn.h>
Classes | |
struct | Table |
深さを記憶するテーブル. More... | |
Public Member Functions | |
ProofTreeDepthDfpn (const DfpnTable &table) | |
~ProofTreeDepthDfpn () | |
int | depth (const HashKey &key, const NumEffectState &state, bool is_or_node) const |
void | retrievePV (const NumEffectState &state, bool is_or_node, std::vector< Move > &pv) const |
Private Member Functions | |
int | orNode (const HashKey &key, Move &best_move, int height=0) const |
int | andNode (const HashKey &key, Move &best_move, int height=0) const |
Private Attributes | |
std::unique_ptr< Table > | table |
詰までの手数を数える.
詰将棋ルーチン次第で,無駄合なども含まれるため 人間の感覚と一致するとは限らない.
Definition at line 21 of file proofTreeDepthDfpn.h.
|
explicit |
Definition at line 74 of file proofTreeDepthDfpn.cc.
References ~ProofTreeDepthDfpn().
Referenced by osl::checkmate::ProofTreeDepthDfpn::Table::maxDepth().
osl::checkmate::ProofTreeDepthDfpn::~ProofTreeDepthDfpn | ( | ) |
Definition at line 80 of file proofTreeDepthDfpn.cc.
References depth().
Referenced by ProofTreeDepthDfpn().
|
private |
Definition at line 176 of file proofTreeDepthDfpn.cc.
References osl::alt(), osl::BLACK, depth(), osl::checkmate::DfpnTable::find(), osl::checkmate::DfpnTable::maxDepth(), osl::hash::HashKey::newHashWithMove(), orNode(), and osl::checkmate::DfpnTable::store().
Referenced by depth(), orNode(), and retrievePV().
int osl::checkmate::ProofTreeDepthDfpn::depth | ( | const HashKey & | key, |
const NumEffectState & | state, | ||
bool | is_or_node | ||
) | const |
Definition at line 85 of file proofTreeDepthDfpn.cc.
References andNode(), orNode(), and retrievePV().
Referenced by andNode(), orNode(), and ~ProofTreeDepthDfpn().
|
private |
Definition at line 115 of file proofTreeDepthDfpn.cc.
References andNode(), osl::checkmate::DfpnRecordBase::best_move, depth(), osl::checkmate::DfpnTable::find(), osl::checkmate::FixedDepthSearcher::hasCheckmateMoveOfTurn(), osl::checkmate::ProofDisproof::isCheckmateSuccess(), osl::Move::isNormal(), osl::checkmate::DfpnTable::maxDepth(), osl::hash::HashKey::newHashWithMove(), osl::PieceStand::nextStand(), osl::checkmate::DfpnRecordBase::proof_disproof, osl::checkmate::DfpnTable::store(), osl::checkmate::DfpnTable::table, and osl::WHITE.
Referenced by andNode(), depth(), and retrievePV().
void osl::checkmate::ProofTreeDepthDfpn::retrievePV | ( | const NumEffectState & | state, |
bool | is_or_node, | ||
std::vector< Move > & | pv | ||
) | const |
Definition at line 94 of file proofTreeDepthDfpn.cc.
References andNode(), osl::Move::isNormal(), osl::checkmate::DfpnTable::maxDepth(), osl::hash::HashKey::newMakeMove(), and orNode().
Referenced by depth(), and osl::checkmate::Dfpn::hasCheckmateMove().
|
private |
Definition at line 23 of file proofTreeDepthDfpn.h.