checkmateIfCapture.h
Go to the documentation of this file.
1 /* checkmateIfCapture.h
2  */
3 #ifndef OSL_CHECKMATEIFCAPTURE_H
4 #define OSL_CHECKMATEIFCAPTURE_H
5 
6 #include "osl/numEffectState.h"
7 
8 namespace osl
9 {
10  namespace checkmate
11  {
12 
14  {
21  static bool effectiveAttack(NumEffectState& state, Move move, int depth);
22 
29  static bool cannotCapture(NumEffectState& state, Square last_to, int depth);
30 
32  static bool effectiveAttackCandidate0(const NumEffectState& state, Move move);
33  struct CallDefense;
34  };
35 
36  } // namespace checkmate
37 } // osl
38 
39 #endif /* OSL_CHECKMATEIFCAPTURE_H */
40 // ;;; Local Variables:
41 // ;;; mode:c++
42 // ;;; c-basic-offset:2
43 // ;;; End:
static bool effectiveAttackCandidate0(const NumEffectState &state, Move move)
depth==0でeffectiveAttackになる可能性がなければfalse
圧縮していない moveの表現 .
Definition: basic_type.h:1051
static bool cannotCapture(NumEffectState &state, Square last_to, int depth)
手番の側がSquare の駒を取っても詰みがないか.
利きを持つ局面
static bool effectiveAttack(NumEffectState &state, Move move, int depth)
move を指した後,alt(move.player())が取ると詰みかどうか.