All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Private Attributes
osl::checkmate::ProofNumberTable Class Reference

#include <proofNumberTable.h>

List of all members.

Classes

struct  Liberty
struct  Table

Public Member Functions

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


Member Function Documentation

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

Definition at line 335 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 216 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 357 of file proofNumberTable.cc.

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

drop のみ

Definition at line 246 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 312 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines