My Project
fixedDepthSearcher.cc
Go to the documentation of this file.
1 /* fixedDepthSearcher.cc
2  */
6 #include "osl/numEffectState.tcc"
7 
10 hasCheckmateMoveOfTurn(int depth, Move& best_move)
11 {
12  if (state->turn() == BLACK)
13  return hasCheckmateMove<BLACK>(depth, best_move);
14  else
15  return hasCheckmateMove<WHITE>(depth, best_move);
16 }
17 
20 hasEscapeMoveOfTurn(Move last_move, int depth)
21 {
22  if (state->turn() == BLACK)
23  return hasEscapeMove<BLACK>(last_move, depth);
24  else
25  return hasEscapeMove<WHITE>(last_move, depth);
26 }
27 
30 hasEscapeByMoveOfTurn(Move next_move, int depth)
31 {
32  if (state->turn() == BLACK)
33  return hasEscapeByMove<WHITE>(next_move, depth);
34  else
35  return hasEscapeByMove<BLACK>(next_move, depth);
36 }
37 
38 /* ------------------------------------------------------------------------- */
39 // ;;; Local Variables:
40 // ;;; mode:c++
41 // ;;; c-basic-offset:2
42 // ;;; End:
osl::checkmate::FixedDepthSearcher::hasEscapeByMoveOfTurn
const ProofDisproof hasEscapeByMoveOfTurn(Move next_move, int depth)
Definition: fixedDepthSearcher.cc:30
osl::Move
圧縮していない moveの表現 .
Definition: basic_type.h:1052
fixedDepthSearcher.h
osl::checkmate::FixedDepthSearcher::hasCheckmateMoveOfTurn
const ProofDisproof hasCheckmateMoveOfTurn(int depth, Move &best_move)
Definition: fixedDepthSearcher.cc:10
osl::checkmate::FixedDepthSearcher::state
NumEffectState * state
Definition: fixedDepthSearcher.h:43
addEffectWithEffect.tcc
fixedDepthSearcher.tcc
numEffectState.tcc
osl::checkmate::FixedDepthSearcher::hasEscapeMoveOfTurn
const ProofDisproof hasEscapeMoveOfTurn(Move last_move, int depth)
Definition: fixedDepthSearcher.cc:20
osl::BLACK
@ BLACK
Definition: basic_type.h:9
osl::checkmate::ProofDisproof
証明数(proof number)と反証数(disproof number).
Definition: proofDisproof.h:17
osl::SimpleState::turn
Player turn() const
Definition: simpleState.h:220