#include <majorPiece.h>
Public Types | |
enum | { ONE_DIM = PTYPE_SIZE * PTYPE_SIZE * 2 * 2 * 2, DIM = ONE_DIM * EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static MultiInt | eval (const NumEffectState &state) |
Private Member Functions | |
size_t | maxActive () const |
Static Private Member Functions | |
static int | index (Ptype support, Ptype attack, bool has_gold, bool rook_support, bool bishop_support) |
template<Player Owner> | |
static void | addOne (const NumEffectState &state, Piece rook, MultiInt &) |
Static Private Attributes | |
static CArray< MultiInt, ONE_DIM > | table |
Definition at line 690 of file majorPiece.h.
anonymous enum |
Definition at line 693 of file majorPiece.h.
void osl::eval::ml::AttackMajorsInBase::addOne | ( | const NumEffectState & | state, |
Piece | rook, | ||
MultiInt & | result | ||
) | [static, private] |
Definition at line 1440 of file majorPiece.cc.
References osl::alt(), osl::BISHOP, osl::BLACK, osl::GOLD, osl::Piece::isPlayerPtype(), osl::Square::neighbor(), osl::Piece::square(), osl::Square::squareForBlack(), osl::U, osl::UL, osl::UR, and osl::Square::y().
osl::MultiInt osl::eval::ml::AttackMajorsInBase::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 1484 of file majorPiece.cc.
References osl::BLACK, osl::Piece::isOnBoard(), osl::Piece::isPromoted(), osl::Piece::owner(), result, and osl::ROOK.
Referenced by osl::eval::ml::OpenMidEndingEval::debugInfo(), osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
static int osl::eval::ml::AttackMajorsInBase::index | ( | Ptype | support, |
Ptype | attack, | ||
bool | has_gold, | ||
bool | rook_support, | ||
bool | bishop_support | ||
) | [inline, static, private] |
Definition at line 702 of file majorPiece.h.
References osl::unpromoteSafe().
size_t osl::eval::ml::AttackMajorsInBase::maxActive | ( | ) | const [inline, private] |
Definition at line 701 of file majorPiece.h.
void osl::eval::ml::AttackMajorsInBase::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 1428 of file majorPiece.cc.
References osl::NStages, and osl::eval::ml::Weights::value().
osl::misc::CArray< MultiInt, osl::eval::ml::AttackMajorsInBase::ONE_DIM > osl::eval::ml::AttackMajorsInBase::table [static, private] |
Definition at line 700 of file majorPiece.h.