proofTreeDepthDfpn.h
Go to the documentation of this file.
/* proofTreeDepthDfpn.h
*/
#ifndef OSL_PROOFTREEDEPTHDFPN_H
#define OSL_PROOFTREEDEPTHDFPN_H
#include "osl/numEffectState.h"
#include "osl/hashKey.h"
#include <vector>
namespace osl
{
namespace checkmate
{
class CheckHashRecord;
class DfpnTable;
class ProofTreeDepthDfpn
{
struct Table;
std::unique_ptr<Table> table;
public:
explicit 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:
int orNode(const HashKey& key, Move& best_move, int height=0) const;
int andNode(const HashKey& key, Move& best_move, int height=0) const;
};
} // namespace checkmate
}
#endif /* OSL_PROOFTREEDEPTHDFPN_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::checkmate::DfpnTable
詰探索局面表 – 並列でも共有する部分
Definition dfpn.h:30
osl::checkmate::ProofTreeDepthDfpn::table
std::unique_ptr< Table > table
Definition proofTreeDepthDfpn.h:24
osl::checkmate::ProofTreeDepthDfpn::depth
int depth(const HashKey &key, const NumEffectState &state, bool is_or_node) const
Definition proofTreeDepthDfpn.cc:85
osl::checkmate::ProofTreeDepthDfpn::ProofTreeDepthDfpn
ProofTreeDepthDfpn(const DfpnTable &table)
Definition proofTreeDepthDfpn.cc:74
osl::checkmate::ProofTreeDepthDfpn::~ProofTreeDepthDfpn
~ProofTreeDepthDfpn()
Definition proofTreeDepthDfpn.cc:80
osl::checkmate::ProofTreeDepthDfpn::retrievePV
void retrievePV(const NumEffectState &state, bool is_or_node, std::vector< Move > &pv) const
Definition proofTreeDepthDfpn.cc:94
osl::checkmate::ProofTreeDepthDfpn::orNode
int orNode(const HashKey &key, Move &best_move, int height=0) const
Definition proofTreeDepthDfpn.cc:115
osl::checkmate::ProofTreeDepthDfpn::andNode
int andNode(const HashKey &key, Move &best_move, int height=0) const
Definition proofTreeDepthDfpn.cc:176
osl::hash::HashKey
Definition hashKey.h:153
hashKey.h
osl::checkmate
Definition king8Info.h:12
osl
Definition additionalEffect.h:6
numEffectState.h
osl::checkmate::ProofTreeDepthDfpn::Table
深さを記憶するテーブル.
Definition proofTreeDepthDfpn.cc:15