My Project
immediateCheckmate.cc
Go to the documentation of this file.
1/* immediateCheckmate.cc
2 */
3
5
6namespace osl
7{
8 namespace checkmate
9 {
10 template
11 bool ImmediateCheckmate::
12 hasCheckmateMove<BLACK>(NumEffectState const&, King8Info, Square, Move&);
13 template
14 bool osl::checkmate::ImmediateCheckmate::
15 hasCheckmateMove<WHITE>(NumEffectState const&, King8Info, Square, Move&);
16
17 template
18 bool ImmediateCheckmate::
19 hasCheckmateMove<BLACK>(NumEffectState const&, Move&);
20 template
21 bool osl::checkmate::ImmediateCheckmate::
22 hasCheckmateMove<WHITE>(NumEffectState const&, Move&);
23
24 template
25 bool ImmediateCheckmate::
26 hasCheckmateMove<BLACK>(NumEffectState const&);
27 template
28 bool osl::checkmate::ImmediateCheckmate::
29 hasCheckmateMove<WHITE>(NumEffectState const&);
30 }
31}
32
35{
36 if(pl==BLACK)
37 return hasCheckmateMove<BLACK>(state);
38 else
39 return hasCheckmateMove<WHITE>(state);
40
41}
43hasCheckmateMove(Player pl,NumEffectState const& state,Move& bestMove)
44{
45 if(pl==BLACK)
46 return hasCheckmateMove<BLACK>(state,bestMove);
47 else
48 return hasCheckmateMove<WHITE>(state,bestMove);
49}
50
51/* ------------------------------------------------------------------------- */
52// ;;; Local Variables:
53// ;;; mode:c++
54// ;;; c-basic-offset:2
55// ;;; End:
56
圧縮していない moveの表現 .
利きを持つ局面
static bool hasCheckmateMove(NumEffectState const &state, Square target, King8Info mask, Move &bestMove)
Player
Definition basic_type.h:8
@ BLACK
Definition basic_type.h:9