My Project
fixedDepthSearcher.cc
Go to the documentation of this file.
1/* fixedDepthSearcher.cc
2 */
7
10hasCheckmateMoveOfTurn(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
20hasEscapeMoveOfTurn(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
30hasEscapeByMoveOfTurn(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:
圧縮していない moveの表現 .
Player turn() const
const ProofDisproof hasCheckmateMoveOfTurn(int depth, Move &best_move)
const ProofDisproof hasEscapeByMoveOfTurn(Move next_move, int depth)
const ProofDisproof hasEscapeMoveOfTurn(Move last_move, int depth)
証明数(proof number)と反証数(disproof number).
@ BLACK
Definition basic_type.h:9