All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
immediateCheckmate.cc
Go to the documentation of this file.
1 /* immediateCheckmate.cc
2  */
3 
6 
7 namespace osl
8 {
9  namespace checkmate
10  {
11  template
12  bool ImmediateCheckmate::
13  hasCheckmateMove<BLACK>(NumEffectState const&, King8Info, Square, Move&);
14  template
15  bool osl::checkmate::ImmediateCheckmate::
16  hasCheckmateMove<WHITE>(NumEffectState const&, King8Info, Square, Move&);
17 
18  template
19  bool ImmediateCheckmate::
20  hasCheckmateMove<BLACK>(NumEffectState const&, Move&);
21  template
22  bool osl::checkmate::ImmediateCheckmate::
23  hasCheckmateMove<WHITE>(NumEffectState const&, Move&);
24 
25  template
26  bool ImmediateCheckmate::
27  hasCheckmateMove<BLACK>(NumEffectState const&);
28  template
29  bool osl::checkmate::ImmediateCheckmate::
30  hasCheckmateMove<WHITE>(NumEffectState const&);
31  }
32 }
33 
35 hasCheckmateMove(Player pl,NumEffectState const& state)
36 {
37  if(pl==BLACK)
38  return hasCheckmateMove<BLACK>(state);
39  else
40  return hasCheckmateMove<WHITE>(state);
41 
42 }
44 hasCheckmateMove(Player pl,NumEffectState const& state,Move& bestMove)
45 {
46  if(pl==BLACK)
47  return hasCheckmateMove<BLACK>(state,bestMove);
48  else
49  return hasCheckmateMove<WHITE>(state,bestMove);
50 }
51 
52 /* ------------------------------------------------------------------------- */
53 // ;;; Local Variables:
54 // ;;; mode:c++
55 // ;;; c-basic-offset:2
56 // ;;; End:
57