My Project
|
#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 |
![]() | |
Feature (std::string n, size_t d) | |
virtual | ~Feature () |
std::string | name () const |
size_t | dimension () 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) |
![]() | |
static int | classifyEffect9 (const NumEffectState &state, Player player, Square to) |
Definition at line 920 of file move_probability/feature.h.
anonymous enum |
Enumerator | |
---|---|
PatternCacheSize | |
DIM |
Definition at line 923 of file move_probability/feature.h.
|
inline |
Definition at line 927 of file move_probability/feature.h.
|
inlinestatic |
Definition at line 945 of file move_probability/feature.h.
References addSquare(), osl::Piece::isEdge(), osl::Piece::isEmpty(), osl::Piece::isPiece(), osl::Piece::owner(), PatternCacheSize, osl::SimpleState::pieceAt(), osl::Piece::ptype(), osl::move_probability::StateInfo::state, and osl::SimpleState::turn().
|
inlinestatic |
Definition at line 930 of file move_probability/feature.h.
References osl::Square::index(), osl::move_probability::StateInfo::pattern_cache, and osl::CArray< T, Capacity >::size().
Referenced by addOne().
|
inlinevirtual |
Implements osl::move_probability::Feature.
Definition at line 985 of file move_probability/feature.h.
References osl::BISHOP, osl::move_probability::MoveInfo::move, osl::Move::ptype(), osl::Move::to(), and osl::unpromote().