#include <trapRook.h>
Public Member Functions | |
template<osl::Direction Dir> | |
bool | testDirection (const NumEffectState &state, Square initial) |
Static Public Member Functions | |
static bool | isMember (const NumEffectState &state, Ptype ptype, Square from, Square to) |
Static Private Member Functions | |
template<Direction Dir> | |
static bool | testDirection (const NumEffectState &state, Square initial) |
指す側 | alt(P)の飛車を封じ込める(のに結構な確率で貢献する)手かどうか |
Definition at line 15 of file trapRook.h.
|
static |
Definition at line 31 of file trapRook.cc.
References osl::alt(), osl::Piece::canMoveOn(), osl::Piece::isEmpty(), osl::Piece::isOnBoardByOwner(), osl::Square::isPieceStand(), osl::newPtypeO(), osl::PAWN, osl::Piece::ptypeO(), and osl::ROOK.
bool osl::move_classifier::TrapRook< P >::testDirection | ( | const NumEffectState & | state, |
Square | initial | ||
) |
Definition at line 9 of file trapRook.cc.
References osl::Piece::canMoveOn(), osl::Piece::isEmpty(), and osl::Piece::isOnBoardByOwner().
|
staticprivate |