#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 13 of file karanari.h.
|
inline |
Definition at line 17 of file karanari.h.
|
inlinestatic |
Definition at line 41 of file karanari.h.
References osl::Square::canPromote(), osl::Neighboring8::isNeighboring8(), matchGeneral(), osl::PBISHOP, osl::Move::player(), osl::PROOK, osl::Move::ptype(), and osl::Move::to().
Referenced by osl::rating::KaranariGroup::findMatch().
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 29 of file karanari.h.
References bishop, can_promote_area, osl::Square::canPromote(), osl::Neighboring8::isNeighboring8(), matchGeneral(), osl::PBISHOP, osl::Move::player(), osl::PROOK, osl::Move::ptype(), and osl::Move::to().
|
inlinestatic |
Definition at line 18 of file karanari.h.
References osl::alt(), osl::Square::canPromote(), osl::Move::capturePtype(), osl::Move::from(), osl::move_generator::addeffect8::hasEffect(), osl::Move::isPromotion(), osl::Move::oldPtypeO(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), and osl::Move::to().
|
private |
Definition at line 15 of file karanari.h.
Referenced by match().
|
private |
Definition at line 15 of file karanari.h.
Referenced by match().