My Project
|
打歩詰の判定. More...
#include <pawnDropCheckmate.h>
Static Public Member Functions | |
static bool | canEscape (const NumEffectState &state, Square kingSquare, Direction dir, Square dropAt) |
kingSquare に居る alt(P)の玉が dir 方向に逃げられるか. | |
static bool | escape7 (const NumEffectState &state, Square kingSquare, Square to) |
王が前以外に移動可能か | |
static bool | isMember (const NumEffectState &state, Ptype ptype, Square from, Square to) |
打歩詰の判定.
P | 指手(攻撃)側 |
Definition at line 18 of file pawnDropCheckmate.h.
|
static |
kingSquare に居る alt(P)の玉が dir 方向に逃げられるか.
Definition at line 64 of file pawnDropCheckmate.h.
References osl::alt(), osl::Board_Table, osl::BoardTable::getOffset(), osl::BoardTable::getShortOffsetNotKnight(), osl::Square::isEdge(), osl::Piece::isOnBoardByOwner(), osl::Piece::owner(), osl::SimpleState::pieceAt(), osl::Piece::square(), and osl::Offset::zero().
|
static |
王が前以外に移動可能か
Definition at line 100 of file pawnDropCheckmate.h.
References osl::D, osl::DL, osl::DR, osl::L, osl::R, osl::UL, and osl::UR.
Referenced by osl::move_classifier::PawnDropCheckmate< P >::isMember().
|
inlinestatic |
Definition at line 28 of file pawnDropCheckmate.h.
References osl::alt(), osl::Piece::EMPTY(), osl::move_classifier::PawnDropCheckmate< P >::escape7(), osl::NumEffectState::hasEffectAt(), osl::NumEffectState::Iking8Info(), osl::Square::isPieceStand(), osl::checkmate::King8Info::liberty(), osl::PAWN, osl::NumEffectState::safeCaptureNotByKing(), and osl::Piece::square().