fixedDepthSearcher.cc
Go to the documentation of this file.
/* fixedDepthSearcher.cc
*/
#include "osl/checkmate/fixedDepthSearcher.h"
#include "osl/checkmate/fixedDepthSearcher.tcc"
#include "osl/move_generator/addEffectWithEffect.tcc"
#include "osl/numEffectState.tcc"
const osl::checkmate::ProofDisproof
osl::checkmate::FixedDepthSearcher::
hasCheckmateMoveOfTurn(int depth, Move& best_move)
{
if (state->turn() == BLACK)
return hasCheckmateMove<BLACK>(depth, best_move);
else
return hasCheckmateMove<WHITE>(depth, best_move);
}
const osl::checkmate::ProofDisproof
osl::checkmate::FixedDepthSearcher::
hasEscapeMoveOfTurn(Move last_move, int depth)
{
if (state->turn() == BLACK)
return hasEscapeMove<BLACK>(last_move, depth);
else
return hasEscapeMove<WHITE>(last_move, depth);
}
const osl::checkmate::ProofDisproof
osl::checkmate::FixedDepthSearcher::
hasEscapeByMoveOfTurn(Move next_move, int depth)
{
if (state->turn() == BLACK)
return hasEscapeByMove<WHITE>(next_move, depth);
else
return hasEscapeByMove<BLACK>(next_move, depth);
}
/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
addEffectWithEffect.tcc
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::checkmate::FixedDepthSearcher::hasEscapeByMove
const ProofDisproof hasEscapeByMove(Move next_move, int depth)
osl::checkmate::FixedDepthSearcher::state
NumEffectState * state
Definition fixedDepthSearcher.h:43
osl::checkmate::FixedDepthSearcher::hasCheckmateMoveOfTurn
const ProofDisproof hasCheckmateMoveOfTurn(int depth, Move &best_move)
Definition fixedDepthSearcher.cc:10
osl::checkmate::FixedDepthSearcher::hasEscapeByMoveOfTurn
const ProofDisproof hasEscapeByMoveOfTurn(Move next_move, int depth)
Definition fixedDepthSearcher.cc:30
osl::checkmate::FixedDepthSearcher::hasEscapeMove
const ProofDisproof hasEscapeMove(Move last_move, int depth)
Definition fixedDepthSearcher.h:103
osl::checkmate::FixedDepthSearcher::hasEscapeMoveOfTurn
const ProofDisproof hasEscapeMoveOfTurn(Move last_move, int depth)
Definition fixedDepthSearcher.cc:20
osl::checkmate::FixedDepthSearcher::hasCheckmateMove
const ProofDisproof hasCheckmateMove(int depth, Move &best_move)
Definition fixedDepthSearcher.h:90
osl::checkmate::ProofDisproof
証明数(proof number)と反証数(disproof number).
Definition proofDisproof.h:17
fixedDepthSearcher.h
fixedDepthSearcher.tcc
osl::BLACK
@ BLACK
Definition basic_type.h:9
numEffectState.tcc