#include <majorPiece.h>
Public Types | |
enum | { ONE_DIM = PTYPE_SIZE * 2 * 2, DIM = ONE_DIM * EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static MultiInt | eval (const NumEffectState &state) |
Static Private Member Functions | |
template<Player Owner> | |
static MultiInt | addOne (const NumEffectState &state) |
static size_t | index (Ptype ptype, bool is_rook, bool can_promote) |
Static Private Attributes | |
static CArray< MultiInt, ONE_DIM > | table |
Definition at line 635 of file majorPiece.h.
anonymous enum |
Definition at line 638 of file majorPiece.h.
osl::MultiInt osl::eval::ml::MajorCheckWithCapture::addOne | ( | const NumEffectState & | state | ) | [static, private] |
Definition at line 1221 of file majorPiece.cc.
References osl::alt(), osl::BISHOP, osl::BLACK, osl::Square::canPromote(), osl::newPtypeO(), osl::Piece::ptype(), osl::ROOK, and osl::Piece::square().
osl::MultiInt osl::eval::ml::MajorCheckWithCapture::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 1250 of file majorPiece.cc.
Referenced by osl::eval::ml::OpenMidEndingEval::debugInfo(), osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
static size_t osl::eval::ml::MajorCheckWithCapture::index | ( | Ptype | ptype, |
bool | is_rook, | ||
bool | can_promote | ||
) | [inline, static, private] |
Definition at line 648 of file majorPiece.h.
void osl::eval::ml::MajorCheckWithCapture::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 1210 of file majorPiece.cc.
References osl::NStages, and osl::eval::ml::Weights::value().
osl::misc::CArray< MultiInt, osl::eval::ml::MajorCheckWithCapture::ONE_DIM > osl::eval::ml::MajorCheckWithCapture::table [static, private] |
Definition at line 645 of file majorPiece.h.