My Project
|
#include <karanari.h>
Public Member Functions | |
Karanari (bool b, bool c) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
![]() | |
Feature (const std::string &name) | |
virtual | ~Feature () |
virtual bool | effectiveInCheck () const |
const std::string & | name () const |
Static Public Member Functions | |
static bool | matchGeneral (const NumEffectState &state, Move move) |
static int | index (const NumEffectState &state, Move move) |
Private Attributes | |
bool | bishop |
bool | can_promote_area |
Definition at line 12 of file karanari.h.
|
inline |
Definition at line 16 of file karanari.h.
|
inlinestatic |
Definition at line 40 of file karanari.h.
References osl::Square::canPromote(), osl::Square::isNeighboring8(), osl::SimpleState::kingSquare(), matchGeneral(), osl::PBISHOP, osl::Move::player(), osl::PROOK, osl::Move::ptype(), osl::Move::to(), and osl::SimpleState::turn().
Referenced by osl::rating::KaranariGroup::findMatch().
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 28 of file karanari.h.
References bishop, can_promote_area, osl::Square::canPromote(), osl::Square::isNeighboring8(), osl::SimpleState::kingSquare(), matchGeneral(), osl::PBISHOP, osl::Move::player(), osl::PROOK, osl::Move::ptype(), osl::Move::to(), and osl::SimpleState::turn().
|
inlinestatic |
Definition at line 17 of file karanari.h.
References osl::alt(), osl::Square::canPromote(), osl::Move::capturePtype(), osl::Move::from(), osl::effect_util::Neighboring8Direct::hasEffect(), osl::Move::isPromotion(), osl::SimpleState::kingSquare(), osl::Move::oldPtypeO(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), osl::Move::to(), and osl::SimpleState::turn().
|
private |
Definition at line 14 of file karanari.h.
Referenced by match().
|
private |
Definition at line 14 of file karanari.h.
Referenced by match().