#include <checkmate.h>


Classes | |
| struct | Helper |
Public Member Functions | |
| Threatmate () | |
| bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
Public Member Functions inherited from osl::rating::Feature | |
| Feature (const std::string &name) | |
| virtual | ~Feature () |
| virtual bool | effectiveInCheck () const |
| const std::string & | name () const |
Static Public Member Functions | |
| static bool | isCandidate (const NumEffectState &state, Move move) |
| static bool | knight2Step (const NumEffectState &state, Move move, Square king) |
| static bool | captureForKnightCheck (const NumEffectState &state, Move move, Square king) |
Definition at line 27 of file checkmate.h.
|
inline |
Definition at line 30 of file checkmate.h.
|
static |
Definition at line 36 of file checkmate.cc.
References osl::alt(), osl::Board_Table, osl::Piece::canMoveOn(), osl::captured(), osl::Move::capturePtype(), osl::Piece::isEmpty(), osl::Piece::isPiece(), osl::KNIGHT, osl::BoardTable::nextSquare(), osl::Move::to(), osl::unpromote(), osl::UUL, and osl::UUR.
Referenced by isCandidate().
|
static |
Definition at line 61 of file checkmate.cc.
References osl::alt(), captureForKnightCheck(), osl::Move::capturePtype(), osl::Move::capturePtypeO(), osl::Move::from(), osl::Move::isDrop(), osl::Neighboring8::isNeighboring8(), osl::KNIGHT, knight2Step(), osl::newPtypeO(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), and osl::Move::to().
|
static |
Definition at line 25 of file checkmate.cc.
References osl::KNIGHT, osl::playerToMul(), osl::Move::ptype(), osl::Move::to(), osl::Square::x(), and osl::Square::y().
Referenced by isCandidate().
1.8.4