#include <feature.h>
Public Types | |
enum | { PatternCacheSize = PatternCommon::PatternCacheSize, DIM = PatternCacheSize*2 } |
Public Member Functions | |
BishopAttack () | |
double | match (const StateInfo &state, const MoveInfo &move, int offset, const double *w) const |
Static Public Member Functions | |
static double | addSquare (Square target, const StateInfo &info, int offset, const double *w) |
template<Direction D, Ptype Type> | |
static double | addOne (const StateInfo &info, Square to, int offset, const double *w) |
Definition at line 922 of file move_probability/feature.h.
anonymous enum |
Definition at line 925 of file move_probability/feature.h.
osl::move_probability::BishopAttack::BishopAttack | ( | ) | [inline] |
Definition at line 929 of file move_probability/feature.h.
static double osl::move_probability::BishopAttack::addOne | ( | const StateInfo & | info, |
Square | to, | ||
int | offset, | ||
const double * | w | ||
) | [inline, static] |
Definition at line 947 of file move_probability/feature.h.
References osl::move_probability::StateInfo::state, and target.
static double osl::move_probability::BishopAttack::addSquare | ( | Square | target, |
const StateInfo & | info, | ||
int | offset, | ||
const double * | w | ||
) | [inline, static] |
Definition at line 932 of file move_probability/feature.h.
References osl::Square::index(), and osl::move_probability::StateInfo::pattern_cache.
double osl::move_probability::BishopAttack::match | ( | const StateInfo & | state, |
const MoveInfo & | move, | ||
int | offset, | ||
const double * | w | ||
) | const [inline, virtual] |
Implements osl::move_probability::Feature.
Definition at line 987 of file move_probability/feature.h.
References osl::BISHOP, osl::move_probability::MoveInfo::move, osl::Move::ptype(), osl::Move::to(), and osl::unpromote().