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:
const ProofDisproof hasEscapeMoveOfTurn(Move last_move, int depth)
圧縮していない moveの表現 .
Definition: basic_type.h:1051
Player turn() const
Definition: simpleState.h:220
const ProofDisproof hasCheckmateMoveOfTurn(int depth, Move &best_move)
証明数(proof number)と反証数(disproof number).
Definition: proofDisproof.h:16
const ProofDisproof hasEscapeByMoveOfTurn(Move next_move, int depth)