My Project
std
osl
checkmate
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
13
struct
CheckmateIfCapture
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:
osl::Square
Definition:
basic_type.h:532
osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0
static bool effectiveAttackCandidate0(const NumEffectState &state, Move move)
depth==0でeffectiveAttackになる可能性がなければfalse
Definition:
checkmateIfCapture.cc:21
osl::checkmate::CheckmateIfCapture::cannotCapture
static bool cannotCapture(NumEffectState &state, Square last_to, int depth)
手番の側がSquare の駒を取っても詰みがないか.
Definition:
checkmateIfCapture.cc:133
osl::Move
圧縮していない moveの表現 .
Definition:
basic_type.h:1052
checkmate
osl::checkmate::CheckmateIfCapture::effectiveAttack
static bool effectiveAttack(NumEffectState &state, Move move, int depth)
move を指した後,alt(move.player())が取ると詰みかどうか.
Definition:
checkmateIfCapture.cc:120
osl::checkmate::CheckmateIfCapture
Definition:
checkmateIfCapture.h:14
osl::NumEffectState
利きを持つ局面
Definition:
numEffectState.h:34
numEffectState.h
osl
Definition:
additionalEffect.h:6
osl::checkmate::CheckmateIfCapture::CallDefense
Definition:
checkmateIfCapture.cc:10
Generated by
1.8.20