#include <trapRook.h>
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.
| bool osl::move_classifier::TrapRook< P >::isMember | ( | const NumEffectState & | state, |
| Ptype | ptype, | ||
| Square | from, | ||
| Square | to | ||
| ) | [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 | ||
| ) | [static, private] |
Definition at line 9 of file trapRook.cc.
References osl::Piece::canMoveOn(), osl::Piece::isEmpty(), and osl::Piece::isOnBoardByOwner().
1.7.6.1