#include <ntesukiSimulationSearcher.h>

| 構成 | |
| 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_t & | state | 
| NtesukiMoveGenerator * | mg | 
| PathEncoding & | path | 
| NtesukiTable & | table | 
| NtesukiRecord::ISScheme | isscheme | 
ntesukiSimulationSearcher.h の 15 行で定義されています。
| osl::ntesuki::NtesukiSimulationSearcher::NtesukiSimulationSearcher | ( | state_t & | state, | |
| NtesukiMoveGenerator * | mg, | |||
| PathEncoding & | path, | |||
| NtesukiTable & | table, | |||
| NtesukiRecord::ISScheme | isscheme, | |||
| bool | verbose = false | |||
| ) | 
ntesukiSimulationSearcher.cc の 10 行で定義されています。
| osl::ntesuki::NtesukiSimulationSearcher::~NtesukiSimulationSearcher | ( | ) | 
ntesukiSimulationSearcher.cc の 34 行で定義されています。
参照先 disproof_count, disproof_success_count, light_proof_success_count, node_count, proof_count, proof_success_count, と verbose.
| void NtesukiSimulationSearcher::attackForDisproof | ( | NtesukiRecord * | record, | |
| const NtesukiRecord * | record_orig, | |||
| const unsigned int | passLeft, | |||
| const Move | last_move | |||
| ) |  [inline, private] | 
Disproof 攻撃に関する計算.
ntesukiSimulationSearcherDisproof.tcc の 92 行で定義されています。
参照先 osl::ntesuki::NtesukiTable::allocateWithMove(), CATCH_DFPN, osl::ntesuki::NtesukiTable::findWithMoveConst(), osl::ntesuki::NtesukiRecord::generateMoves(), osl::ntesuki::NtesukiRecord::getBestMove(), osl::ntesuki::NtesukiMove::getMove(), osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValue(), osl::ntesuki::NtesukiRecord::getValueWithPath(), osl::state::NumEffectState::inCheck(), osl::ntesuki::NtesukiMove::INVALID(), osl::ntesuki::NtesukiMove::isCheck(), osl::ntesuki::NtesukiMove::isCheckmateFail(), osl::ntesuki::NtesukiMove::isInvalid(), osl::ntesuki::NtesukiMove::isNoPromote(), osl::ntesuki::NtesukiMove::isPass(), osl::ntesuki::NtesukiRecord::isVisited(), moves, node_count, ntesuki_assert, path, result, RETURN, osl::ntesuki::NtesukiMove::setCheckmateFail(), osl::ntesuki::NtesukiRecord::setLoopWithPath(), osl::ntesuki::NtesukiRecord::setResult(), osl::ntesuki::NtesukiRecord::setUpNode(), state, table, と TRY_DFPN.
| void NtesukiSimulationSearcher::attackForProof | ( | NtesukiRecord * | record, | |
| const NtesukiRecord * | record_orig, | |||
| const unsigned int | passLeft, | |||
| const Move | last_move | |||
| ) |  [inline, private] | 
Proof 攻撃に関する計算.
ntesukiSimulationSearcherProof.tcc の 143 行で定義されています。
参照先 osl::ntesuki::NtesukiTable::allocateWithMove(), CATCH_DFPN, osl::ntesuki::NtesukiTable::findWithMoveConst(), osl::ntesuki::NtesukiRecord::getBestMove(), osl::ntesuki::NtesukiMove::getMove(), osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValueWithPath(), osl::state::NumEffectState::inCheck(), osl::ntesuki::NtesukiMove::isCheck(), osl::ntesuki::NtesukiMove::isImmediateCheckmate(), osl::ntesuki::NtesukiMove::isInvalid(), osl::Move::isValid(), osl::ntesuki::NtesukiMove::isValid(), osl::ntesuki::NtesukiRecord::isVisited(), node_count, ntesuki_assert, path, result, RETURN, osl::ntesuki::NtesukiMove::setCheckmateSuccess(), osl::ntesuki::NtesukiRecord::setResult(), osl::ntesuki::NtesukiRecord::setUpNode(), state, table, と TRY_DFPN.
| void NtesukiSimulationSearcher::defenseForDisproof | ( | NtesukiRecord * | record, | |
| const NtesukiRecord * | record_orig, | |||
| const unsigned int | passLeft, | |||
| const Move | last_move | |||
| ) |  [inline, private] | 
Disproof 防御に関する計算.
ntesukiSimulationSearcherDisproof.tcc の 252 行で定義されています。
参照先 osl::ntesuki::NtesukiTable::allocateWithMove(), CATCH_DFPN, osl::ntesuki::NtesukiTable::findWithMoveConst(), osl::ntesuki::NtesukiRecord::getBestMove(), osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValue(), osl::ntesuki::NtesukiRecord::getValueWithPath(), osl::state::NumEffectState::inCheck(), osl::ntesuki::NtesukiMove::INVALID(), osl::ntesuki::NtesukiMove::isInvalid(), osl::ntesuki::NtesukiRecord::isVisited(), node_count, ntesuki_assert, path, result, RETURN, osl::ntesuki::NtesukiRecord::setLoopWithPath(), osl::ntesuki::NtesukiRecord::setResult(), osl::ntesuki::NtesukiRecord::setUpNode(), state, table, と TRY_DFPN.
| void NtesukiSimulationSearcher::defenseForProof | ( | NtesukiRecord * | record, | |
| const NtesukiRecord * | record_orig, | |||
| const unsigned int | passLeft, | |||
| const Move | last_move | |||
| ) |  [inline, private] | 
Disproof 防御に関する計算.
ntesukiSimulationSearcherProof.tcc の 304 行で定義されています。
参照先 osl::ntesuki::NtesukiTable::allocateWithMove(), CATCH_DFPN, osl::ntesuki::NtesukiRecord::delay_is, osl::ntesuki::NtesukiTable::findWithMoveConst(), osl::ntesuki::NtesukiRecord::generateMoves(), osl::ntesuki::NtesukiMove::getMove(), osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValue(), osl::ntesuki::NtesukiRecord::getValueWithPath(), osl::state::NumEffectState::inCheck(), osl::ntesuki::NtesukiMove::INVALID(), osl::ntesuki::NtesukiMove::isCheck(), osl::ntesuki::NtesukiMove::isCheckmateSuccess(), osl::ntesuki::NtesukiMove::isPass(), isscheme, osl::ntesuki::NtesukiRecord::isVisited(), moves, node_count, osl::ntesuki::NtesukiRecord::normal_is, ntesuki_assert, path, result, RETURN, osl::ntesuki::NtesukiRecord::setLoopWithPath(), osl::ntesuki::NtesukiRecord::setResult(), osl::ntesuki::NtesukiRecord::setUpNode(), state, table, と TRY_DFPN.
| bool NtesukiSimulationSearcher::isSafeMove | ( | const Move | move, | |
| int | pass_left | |||
| ) |  [inline, private] | 
Still cannot see if is safe move.
ntesukiSimulationSearcherProof.tcc の 130 行で定義されています。
参照先 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.h の 153 行で定義されています。
| 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.
ntesukiSimulationSearcherDisproof.tcc の 396 行で定義されています。
参照先 CATCH_DFPN, disproof_count, disproof_success_count, osl::ntesuki::NtesukiRecord::getValue(), ntesuki_assert, result, と TRY_DFPN.
| template bool osl::ntesuki::NtesukiSimulationSearcher::startFromAttackProof< WHITE > | ( | NtesukiRecord * | record, | |
| const NtesukiRecord * | record_orig, | |||
| const unsigned int | passLeft, | |||
| const Move | last_move | |||
| ) |  [inline] | 
Start simulation to proof, P as Attacker.
ntesukiSimulationSearcherProof.tcc の 494 行で定義されています。
参照先 CATCH_DFPN, osl::ntesuki::NtesukiRecord::getBestMove(), osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValueWithPath(), osl::ntesuki::NtesukiRecord::isDominatedByProofPieces(), osl::ntesuki::NtesukiMove::isImmediateCheckmate(), isscheme, light_proof_success_count, mg, ntesuki_assert, path, proof_count, proof_success_count, result, osl::ntesuki::NtesukiRecord::setUpNode(), osl::ntesuki::OracleProverLight::startFromAttack(), state, table, と TRY_DFPN.
| 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.
ntesukiSimulationSearcherDisproof.tcc の 424 行で定義されています。
参照先 CATCH_DFPN, disproof_count, disproof_success_count, osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValue(), ntesuki_assert, result, state, と TRY_DFPN.
| template bool osl::ntesuki::NtesukiSimulationSearcher::startFromDefenseProof< WHITE > | ( | NtesukiRecord * | record, | |
| const NtesukiRecord * | record_orig, | |||
| const unsigned int | passLeft, | |||
| const Move | last_move | |||
| ) |  [inline] | 
Start simulation to proof, P as Defender.
ntesukiSimulationSearcherProof.tcc の 573 行で定義されています。
参照先 CATCH_DFPN, osl::ntesuki::NtesukiRecord::getBestMove(), osl::state::SimpleState::getTurn(), osl::ntesuki::NtesukiRecord::getValueWithPath(), osl::ntesuki::NtesukiRecord::isDominatedByProofPieces(), osl::ntesuki::NtesukiMove::isImmediateCheckmate(), isscheme, light_proof_success_count, mg, ntesuki_assert, path, proof_count, proof_success_count, result, osl::ntesuki::NtesukiRecord::setUpNode(), osl::ntesuki::OracleProverLight::startFromDefense(), state, table, と TRY_DFPN.
ntesukiSimulationSearcher.h の 30 行で定義されています。
| unsigned int osl::ntesuki::NtesukiSimulationSearcher::disproof_count  [private] | 
ntesukiSimulationSearcher.h の 27 行で定義されています。
参照元 startFromAttackDisproof(), startFromDefenseDisproof(), と ~NtesukiSimulationSearcher().
| unsigned int osl::ntesuki::NtesukiSimulationSearcher::disproof_success_count  [private] | 
ntesukiSimulationSearcher.h の 28 行で定義されています。
参照元 startFromAttackDisproof(), startFromDefenseDisproof(), と ~NtesukiSimulationSearcher().
ntesukiSimulationSearcher.h の 37 行で定義されています。
参照元 defenseForProof(), startFromAttackProof(), と startFromDefenseProof().
| unsigned int osl::ntesuki::NtesukiSimulationSearcher::light_proof_success_count  [private] | 
ntesukiSimulationSearcher.h の 26 行で定義されています。
参照元 startFromAttackProof(), startFromDefenseProof(), と ~NtesukiSimulationSearcher().
ntesukiSimulationSearcher.h の 34 行で定義されています。
| unsigned int osl::ntesuki::NtesukiSimulationSearcher::node_count  [private] | 
現在までに何ノード読んだか
ntesukiSimulationSearcher.h の 19 行で定義されています。
参照元 attackForDisproof(), attackForProof(), defenseForDisproof(), defenseForProof(), と ~NtesukiSimulationSearcher().
| unsigned int osl::ntesuki::NtesukiSimulationSearcher::proof_count  [private] | 
Simulation 結果の統計.
ntesukiSimulationSearcher.h の 24 行で定義されています。
参照元 startFromAttackProof(), startFromDefenseProof(), と ~NtesukiSimulationSearcher().
| unsigned int osl::ntesuki::NtesukiSimulationSearcher::proof_success_count  [private] | 
ntesukiSimulationSearcher.h の 25 行で定義されています。
参照元 startFromAttackProof(), startFromDefenseProof(), と ~NtesukiSimulationSearcher().
| bool osl::ntesuki::NtesukiSimulationSearcher::verbose  [private] | 
 1.6.3
 1.6.3