Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
osl::checkmate::ProofTreeDepthDfpn Class Reference

詰までの手数を数える. 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< Tabletable
 

Detailed Description

詰までの手数を数える.

詰将棋ルーチン次第で,無駄合なども含まれるため 人間の感覚と一致するとは限らない.

Definition at line 21 of file proofTreeDepthDfpn.h.

Constructor & Destructor Documentation

§ ProofTreeDepthDfpn()

osl::checkmate::ProofTreeDepthDfpn::ProofTreeDepthDfpn ( const DfpnTable table)
explicit

§ ~ProofTreeDepthDfpn()

osl::checkmate::ProofTreeDepthDfpn::~ProofTreeDepthDfpn ( )

Definition at line 80 of file proofTreeDepthDfpn.cc.

References depth().

Referenced by ProofTreeDepthDfpn().

Member Function Documentation

§ andNode()

int osl::checkmate::ProofTreeDepthDfpn::andNode ( const HashKey key,
Move best_move,
int  height = 0 
) const
private

§ depth()

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().

§ orNode()

int osl::checkmate::ProofTreeDepthDfpn::orNode ( const HashKey key,
Move best_move,
int  height = 0 
) const
private

§ retrievePV()

void osl::checkmate::ProofTreeDepthDfpn::retrievePV ( const NumEffectState state,
bool  is_or_node,
std::vector< Move > &  pv 
) const

Member Data Documentation

§ table

std::unique_ptr<Table> osl::checkmate::ProofTreeDepthDfpn::table
private

Definition at line 23 of file proofTreeDepthDfpn.h.


The documentation for this class was generated from the following files: