My Project
|
#include <feature.h>
Public Types | |
enum | { PTYPE2_DIM = PTYPE_SIZE*2*PTYPE_SIZE*2*2 , EFFECT_DIM = PTYPE_SIZE*2*8*9 , BasicSize = PTYPE2_DIM+EFFECT_DIM , PawnSize = BasicSize*3 , DIM = PawnSize*2 } |
Public Member Functions | |
PawnAttack () | |
std::pair< int, int > | squareStatus (const NumEffectState &state, Player player, Square to, Square &front) const |
double | matchPtype (const StateInfo &state, const MoveInfo &move, int offset, const double *w) const |
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 |
Additional Inherited Members | |
![]() | |
static int | classifyEffect9 (const NumEffectState &state, Player player, Square to) |
Definition at line 637 of file move_probability/feature.h.
anonymous enum |
Enumerator | |
---|---|
PTYPE2_DIM | |
EFFECT_DIM | |
BasicSize | |
PawnSize | |
DIM |
Definition at line 640 of file move_probability/feature.h.
|
inline |
Definition at line 647 of file move_probability/feature.h.
|
inlinevirtual |
Implements osl::move_probability::Feature.
Definition at line 689 of file move_probability/feature.h.
References osl::SimpleState::canDropPawnTo(), osl::LANCE, matchPtype(), osl::move_probability::MoveInfo::move, osl::PAWN, PawnSize, osl::move_probability::MoveInfo::player, osl::Move::ptype(), osl::move_probability::StateInfo::state, osl::Move::to(), and osl::Square::x().
|
inline |
Definition at line 665 of file move_probability/feature.h.
References osl::alt(), BasicSize, osl::Square::canPromote(), osl::move_probability::Feature::classifyEffect9(), osl::Move::isDrop(), osl::move_probability::MoveInfo::move, osl::move_probability::MoveInfo::player, osl::PTYPE_SIZE, osl::Square::squareForBlack(), squareStatus(), osl::move_probability::StateInfo::state, osl::Move::to(), and osl::Square::y().
Referenced by match().
|
inline |
Definition at line 650 of file move_probability/feature.h.
References osl::BLACK, osl::Piece::isEdge(), osl::Piece::isPiece(), osl::Piece::owner(), osl::SimpleState::pieceAt(), osl::Piece::ptype(), and osl::PTYPE_SIZE.
Referenced by matchPtype().