My Project
|
#include <fixedDepthSolverExt.h>
Classes | |
struct | SetProofPieces |
Additional Inherited Members | |
![]() | |
NumEffectState * | state |
int | count |
Definition at line 11 of file fixedDepthSolverExt.h.
osl::checkmate::FixedDepthSolverExt::FixedDepthSolverExt | ( | ) |
Definition at line 37 of file fixedDepthSolverExt.cc.
|
explicit |
Definition at line 41 of file fixedDepthSolverExt.cc.
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasCheckmateMove | ( | int | depth, |
Move & | best_move, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 112 of file fixedDepthSolverExt.cc.
const ProofDisproof osl::checkmate::FixedDepthSolverExt::hasCheckmateMove | ( | int | depth, |
Move & | best_move, | ||
PieceStand & | proof_pieces | ||
) |
stateがPから詰む局面かを返す.
stateの手番はPと一致しているという前提
Referenced by osl::checkmate::Dfpn::attack(), and osl::checkmate::Dfpn::proofOracleAttack().
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasCheckmateMoveOfTurn | ( | int | depth, |
Move & | best_move, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 62 of file fixedDepthSolverExt.cc.
References osl::BLACK.
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasCheckmateWithGuide | ( | int | depth, |
Move & | guide, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 94 of file fixedDepthSolverExt.cc.
References osl::Move::from(), osl::Move::isDrop(), osl::Move::isNormal(), osl::Piece::isPtype(), osl::KING, osl::Move::newCapture(), osl::Move::ptype(), and osl::Move::to().
const ProofDisproof osl::checkmate::FixedDepthSolverExt::hasCheckmateWithGuide | ( | int | depth, |
Move & | guide, | ||
PieceStand & | proof_pieces | ||
) |
guide を最初に試す. guide.isNormal() である必要はあるが,その局面でvalid でなくても良い
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasCheckmateWithGuideOfTurn | ( | int | depth, |
Move & | guide, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 72 of file fixedDepthSolverExt.cc.
References osl::BLACK.
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasEscapeByMove | ( | Move | next_move, |
int | depth, | ||
Move & | check_move, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 48 of file fixedDepthSolverExt.cc.
References osl::alt().
const ProofDisproof osl::checkmate::FixedDepthSolverExt::hasEscapeByMove | ( | Move | next_move, |
int | depth, | ||
Move & | check_move, | ||
PieceStand & | proof_pieces | ||
) |
next_move を指して逃げられるかどうかを調べる
check_move | 詰の場合の攻撃側の指手 |
depth | next_move を指した後からカウント |
Referenced by osl::checkmate::Dfpn::defense(), and osl::checkmate::Dfpn::proofOracleDefense().
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasEscapeByMoveOfTurn | ( | Move | next_move, |
int | depth, | ||
Move & | check_move, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 82 of file fixedDepthSolverExt.cc.
References osl::BLACK.
const osl::checkmate::ProofDisproof osl::checkmate::FixedDepthSolverExt::hasEscapeMove | ( | Move | last_move, |
int | depth, | ||
PieceStand & | proof_pieces | ||
) |
Definition at line 119 of file fixedDepthSolverExt.cc.
const ProofDisproof osl::checkmate::FixedDepthSolverExt::hasEscapeMove | ( | Move | last_move, |
int | depth, | ||
PieceStand & | proof_pieces | ||
) |
stateがPによって詰んでいる局面かを返す.
王手がかかっていない時には呼ばない stateの手番はalt(P)と一致しているという前提 stateはPによって王手がかかっているという前提
last_move | 打ち歩詰めの判定に必要 |