クラス osl::ntesuki::NtesukiSimulationSearcher

#include <ntesukiSimulationSearcher.h>

osl::ntesuki::NtesukiSimulationSearcherのコラボレーション図
Collaboration graph
[凡例]

すべてのメンバ一覧

構成

class  AttackHelperDisproof
class  AttackHelperProof
class  DefenseHelperDisproof
class  DefenseHelperProof

Public メソッド

 NtesukiSimulationSearcher (state_t &state, NtesukiMoveGenerator *mg, PathEncoding &path, NtesukiTable &table, NtesukiRecord::ISScheme isscheme, bool verbose=false)
 ~NtesukiSimulationSearcher ()
template<Player P>
bool startFromAttackProof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Start simulation to proof, P as Attacker.
template<Player P>
bool startFromDefenseProof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Start simulation to proof, P as Defender.
template<Player P>
bool startFromAttackDisproof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Start simulation to disproof, P as Attacker.
template<Player P>
bool startFromDefenseDisproof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Start simulation to disproof, P as Defender.
unsigned int nodeCount () const

Public 変数

bool debug

Private メソッド

template<Player P>
bool isSafeMove (const Move move, int pass_left)
 Still cannot see if is safe move.
template<Player P>
Move adjustMove (Move candidate) const
template<Player P>
void attackForProof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Proof 攻撃に関する計算.
template<Player P>
void defenseForProof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Disproof 防御に関する計算.
template<Player P>
void attackForDisproof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Disproof 攻撃に関する計算.
template<Player P>
void defenseForDisproof (NtesukiRecord *record, const NtesukiRecord *record_orig, const unsigned int passLeft, const Move last_move)
 Disproof 防御に関する計算.

Private 変数

unsigned int node_count
 現在までに何ノード読んだか
bool verbose
 経過をどこまで表示するか
unsigned int proof_count
 Simulation 結果の統計.
unsigned int proof_success_count
unsigned int light_proof_success_count
unsigned int disproof_count
unsigned int disproof_success_count
NtesukiResult result
state_tstate
NtesukiMoveGeneratormg
PathEncodingpath
NtesukiTabletable
NtesukiRecord::ISScheme isscheme

説明

ntesukiSimulationSearcher.h15 行で定義されています。


コンストラクタとデストラクタ

osl::ntesuki::NtesukiSimulationSearcher::NtesukiSimulationSearcher ( state_t state,
NtesukiMoveGenerator mg,
PathEncoding path,
NtesukiTable table,
NtesukiRecord::ISScheme  isscheme,
bool  verbose = false 
)

ntesukiSimulationSearcher.cc10 行で定義されています。

osl::ntesuki::NtesukiSimulationSearcher::~NtesukiSimulationSearcher (  ) 

関数

template<Player P>
Move osl::ntesuki::NtesukiSimulationSearcher::adjustMove ( Move  candidate  )  const [inline, private]
template<Player P>
void NtesukiSimulationSearcher::attackForDisproof ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline, private]
template<Player P>
void NtesukiSimulationSearcher::attackForProof ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline, private]
template<Player P>
void NtesukiSimulationSearcher::defenseForDisproof ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline, private]
template<Player P>
void NtesukiSimulationSearcher::defenseForProof ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline, private]
template<Player P>
bool NtesukiSimulationSearcher::isSafeMove ( const Move  move,
int  pass_left 
) [inline, private]

Still cannot see if is safe move.

ntesukiSimulationSearcherProof.tcc130 行で定義されています。

参照先 osl::Move::from(), osl::Move::isDrop(), osl::state::SimpleState::isValidMove(), osl::Move::ptype(), state, と osl::Move::to().

unsigned int osl::ntesuki::NtesukiSimulationSearcher::nodeCount (  )  const [inline]

ntesukiSimulationSearcher.h153 行で定義されています。

template<Player P>
template bool osl::ntesuki::NtesukiSimulationSearcher::startFromAttackDisproof< WHITE > ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline]

Start simulation to disproof, P as Attacker.

戻り値:
true, if nocheckmate is proven

ntesukiSimulationSearcherDisproof.tcc396 行で定義されています。

参照先 CATCH_DFPN, disproof_count, disproof_success_count, osl::ntesuki::NtesukiRecord::getValue(), ntesuki_assert, result, と TRY_DFPN.

template<Player P>
template bool osl::ntesuki::NtesukiSimulationSearcher::startFromAttackProof< WHITE > ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline]
template<Player P>
template bool osl::ntesuki::NtesukiSimulationSearcher::startFromDefenseDisproof< WHITE > ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline]

Start simulation to disproof, P as Defender.

戻り値:
true, if nocheckmate is proven

ntesukiSimulationSearcherDisproof.tcc424 行で定義されています。

参照先 CATCH_DFPN, disproof_count, disproof_success_count, osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValue(), ntesuki_assert, result, state, と TRY_DFPN.

template<Player P>
template bool osl::ntesuki::NtesukiSimulationSearcher::startFromDefenseProof< WHITE > ( NtesukiRecord record,
const NtesukiRecord record_orig,
const unsigned int  passLeft,
const Move  last_move 
) [inline]

変数

ntesukiSimulationSearcher.h30 行で定義されています。

ntesukiSimulationSearcher.h37 行で定義されています。

参照元 defenseForProof(), startFromAttackProof(), と startFromDefenseProof().

ntesukiSimulationSearcher.h34 行で定義されています。

参照元 startFromAttackProof(), と startFromDefenseProof().

現在までに何ノード読んだか

ntesukiSimulationSearcher.h19 行で定義されています。

参照元 attackForDisproof(), attackForProof(), defenseForDisproof(), defenseForProof(), と ~NtesukiSimulationSearcher().

Simulation 結果の統計.

ntesukiSimulationSearcher.h24 行で定義されています。

参照元 startFromAttackProof(), startFromDefenseProof(), と ~NtesukiSimulationSearcher().

経過をどこまで表示するか

ntesukiSimulationSearcher.h21 行で定義されています。

参照元 ~NtesukiSimulationSearcher().


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義
Sun May 16 09:58:29 2010に生成されました。  doxygen 1.6.3