#include <minorPiece.h>
Public Types | |
enum | { ONE_DIM = 9, DIM = ONE_DIM * EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static MultiInt | eval (const NumEffectState &state) |
static MultiInt | evalWithUpdate (const NumEffectState &state, Move moved, const MultiInt &last_values) |
template<int Sign> | |
static void | adjust (int index, int index_attack, int index_defense, MultiInt &result) |
Static Private Member Functions | |
template<Player P> | |
static void | evalOne (const NumEffectState &state, const PieceMask promoted, MultiInt &result) |
template<bool attack, Player owner> | |
static int | indexY (const Square king, int x_diff) |
Static Private Attributes | |
static CArray< MultiInt, 9 > | table |
static CArray< MultiInt, 162 > | y_table |
Friends | |
class | PromotedMinorPiecesY |
Definition at line 881 of file minorPiece.h.
anonymous enum |
Enumerator | |
---|---|
ONE_DIM | |
DIM |
Definition at line 885 of file minorPiece.h.
|
inlinestatic |
Definition at line 985 of file minorPiece.cc.
References evalOne(), and osl::eval::ml::ppair::y_table.
Referenced by osl::eval::ml::PromotedMinorPiecesY::setUp().
|
static |
Definition at line 1069 of file minorPiece.cc.
References osl::BISHOP, osl::PieceMask::clearBit(), evalWithUpdate(), osl::container::PieceMask64::none(), osl::NumEffectState::promotedPieces(), and osl::ROOK.
Referenced by evalOne(), and osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
|
staticprivate |
Definition at line 995 of file minorPiece.cc.
References osl::alt(), osl::PieceMask::any(), osl::BLACK, eval(), osl::SimpleState::kingSquare(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::Piece::square(), osl::container::PieceMask64::takeOneBit(), and osl::Square::x().
Referenced by adjust().
|
static |
Definition at line 1084 of file minorPiece.cc.
References osl::captured(), osl::Move::capturePtype(), osl::isMajor(), osl::isPromoted(), osl::KING, osl::eval::ml::NonPawnAttacked::king_table, osl::Move::ptype(), osl::PTYPE_EMPTY, and osl::eval::ml::NonPawnAttacked::table.
Referenced by eval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
|
inlinestaticprivate |
Definition at line 901 of file minorPiece.h.
References osl::BLACK, and osl::Square::y().
|
static |
Definition at line 964 of file minorPiece.cc.
References osl::NStages, osl::eval::ml::PawnDropX::ONE_DIM, osl::eval::ml::PromotedMinorPiecesY::setUp(), and osl::eval::ml::Weights::value().
Referenced by osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate().
|
friend |
Definition at line 883 of file minorPiece.h.
|
staticprivate |
Definition at line 906 of file minorPiece.h.
Referenced by osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate().
|
staticprivate |
Definition at line 907 of file minorPiece.h.
Referenced by osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), and osl::eval::ml::PromotedMinorPiecesY::setUp().