All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Private Attributes | List of all members
osl::checkmate::ProofNumberTable Class Reference

#include <proofNumberTable.h>

Classes

struct  Liberty
 
struct  Table
 

Public Member Functions

 ProofNumberTable ()
 
const Liberty countLiberty (Ptype ptype, Direction d, unsigned int liberty_mask) const
 dir 方向からの王手をかけた時のlibertyの予想 More...
 
const Liberty countLibertyShortNotKnight (Player player, Square to, Ptype ptype, Square king, King8Info info) const
 8近傍へのdropまたは取れない移動後のlibertyの予測値を返す. More...
 
const Liberty countLibertyLong (Player player, Square to, Ptype ptype, Square king, King8Info info) const
 
int countLiberty (const NumEffectState &state, int liberty_count, Move move, Square king, King8Info info) const
 move は王手である必要がある More...
 
int countLiberty (const NumEffectState &state, Move move) const
 テスト用 More...
 
int libertyAfterAllDrop (const NumEffectState &state) const
 drop のみ More...
 
int libertyAfterAllDrop (const NumEffectState &state, Player attack, King8Info info) const
 
int libertyAfterAllMove (const NumEffectState &state) const
 移動 のみ More...
 
int libertyAfterAllMove (const NumEffectState &state, Player attack, King8Info info, Square king) const
 
int libertyAfterAllCheck (const NumEffectState &state) const
 全て More...
 
int disproofAfterAllCheck (const NumEffectState &, Player, King8Info) const
 
const ProofDisproof attackEstimation (const NumEffectState &state) const
 全て More...
 
const ProofDisproof attackEstimation (const NumEffectState &state, Player attack, King8Info info, Square king) const
 

Private Attributes

boost::scoped_ptr< Tabletable
 

Detailed Description

Definition at line 21 of file proofNumberTable.h.

Constructor & Destructor Documentation

osl::checkmate::ProofNumberTable::ProofNumberTable ( )

Member Function Documentation

const osl::checkmate::ProofDisproof osl::checkmate::ProofNumberTable::attackEstimation ( const NumEffectState &  state) const
const osl::checkmate::ProofDisproof osl::checkmate::ProofNumberTable::attackEstimation ( const NumEffectState &  state,
Player  attack,
King8Info  info,
Square  king 
) const

Definition at line 337 of file proofNumberTable.cc.

References osl::eval::min().

const Liberty osl::checkmate::ProofNumberTable::countLiberty ( Ptype  ptype,
Direction  d,
unsigned int  liberty_mask 
) const
inline

dir 方向からの王手をかけた時のlibertyの予想

Definition at line 62 of file proofNumberTable.h.

References table, osl::UUL, and osl::UUR.

Referenced by osl::checkmate::PureLibertyEstimator::attackH(), countLibertyLong(), and countLibertyShortNotKnight().

int osl::checkmate::ProofNumberTable::countLiberty ( const NumEffectState &  state,
int  liberty_count,
Move  move,
Square  king,
King8Info  info 
) const
inline
int osl::checkmate::ProofNumberTable::countLiberty ( const NumEffectState &  state,
Move  move 
) const

テスト用

Definition at line 218 of file proofNumberTable.cc.

References osl::alt(), and osl::Move::player().

const Liberty osl::checkmate::ProofNumberTable::countLibertyLong ( Player  player,
Square  to,
Ptype  ptype,
Square  king,
King8Info  info 
) const
inline
const Liberty osl::checkmate::ProofNumberTable::countLibertyShortNotKnight ( Player  player,
Square  to,
Ptype  ptype,
Square  king,
King8Info  info 
) const
inline

8近傍へのdropまたは取れない移動後のlibertyの予測値を返す.

玉は取り返せる時でも取り返さない値. 桂馬は表をひく必要がないので呼び出し側で処理する.

Returns
空王手の場合は 0 のことがある.

Definition at line 74 of file proofNumberTable.h.

References osl::BLACK, osl::Board_Table, countLiberty(), osl::BoardTable::getShort8(), osl::Neighboring8::isNeighboring8(), osl::KNIGHT, osl::checkmate::King8Info::liberty(), and osl::WHITE.

Referenced by countLiberty().

int osl::checkmate::ProofNumberTable::disproofAfterAllCheck ( const NumEffectState &  state,
Player  attack,
King8Info  info 
) const
int osl::checkmate::ProofNumberTable::libertyAfterAllCheck ( const NumEffectState &  state) const

全て

Definition at line 359 of file proofNumberTable.cc.

int osl::checkmate::ProofNumberTable::libertyAfterAllDrop ( const NumEffectState &  state) const

drop のみ

Definition at line 248 of file proofNumberTable.cc.

References osl::alt().

int osl::checkmate::ProofNumberTable::libertyAfterAllDrop ( const NumEffectState &  state,
Player  attack,
King8Info  info 
) const
int osl::checkmate::ProofNumberTable::libertyAfterAllMove ( const NumEffectState &  state) const

移動 のみ

Definition at line 314 of file proofNumberTable.cc.

References osl::alt().

int osl::checkmate::ProofNumberTable::libertyAfterAllMove ( const NumEffectState &  state,
Player  attack,
King8Info  info,
Square  king 
) const

Member Data Documentation

boost::scoped_ptr<Table> osl::checkmate::ProofNumberTable::table
private

Definition at line 55 of file proofNumberTable.h.

Referenced by countLiberty(), and ProofNumberTable().


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