My Project
core
osl
checkmate
fixedDepthSearcher.cc
Go to the documentation of this file.
1
/* fixedDepthSearcher.cc
2
*/
3
#include "
osl/checkmate/fixedDepthSearcher.h
"
4
#include "
osl/checkmate/fixedDepthSearcher.tcc
"
5
#include "
osl/move_generator/addEffectWithEffect.tcc
"
6
#include "
osl/numEffectState.tcc
"
7
8
const
osl::checkmate::ProofDisproof
9
osl::checkmate::FixedDepthSearcher::
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
18
const
osl::checkmate::ProofDisproof
19
osl::checkmate::FixedDepthSearcher::
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
28
const
osl::checkmate::ProofDisproof
29
osl::checkmate::FixedDepthSearcher::
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:
addEffectWithEffect.tcc
osl::Move
圧縮していない moveの表現 .
Definition
basic_type.h:1052
osl::SimpleState::turn
Player turn() const
Definition
simpleState.h:220
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::count
int count
Definition
fixedDepthSearcher.h:44
osl::checkmate::FixedDepthSearcher::hasEscapeByMoveOfTurn
const ProofDisproof hasEscapeByMoveOfTurn(Move next_move, int depth)
Definition
fixedDepthSearcher.cc:30
osl::checkmate::FixedDepthSearcher::hasEscapeMoveOfTurn
const ProofDisproof hasEscapeMoveOfTurn(Move last_move, int depth)
Definition
fixedDepthSearcher.cc:20
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
Generated by
1.9.8