#include <ptypeEval.h>
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static int | eval (const NumEffectState &state) |
template<Player P> | |
static int | evalWithUpdate (const NumEffectState &, Move moved, int last_value) |
static int | value (PtypeO ptypeO) |
Static Private Attributes | |
static CArray< int, PTYPEO_SIZE > | table |
Definition at line 82 of file ptypeEval.h.
|
static |
Definition at line 77 of file ptypeEval.cc.
References osl::SimpleState::pieceOf(), osl::Piece::ptypeO(), osl::PTYPEO_MIN, osl::Piece::SIZE, osl::eval::PtypeEvalTable::value(), and value().
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and setUp().
|
inlinestatic |
Definition at line 89 of file ptypeEval.h.
References osl::alt(), osl::captured(), osl::Move::capturePtype(), osl::Move::isDrop(), osl::Move::isPass(), osl::Move::isPromotion(), osl::newPtypeO(), osl::Move::oldPtypeO(), osl::Move::player(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), osl::PTYPEO_MIN, osl::unpromote(), and osl::eval::PtypeEvalTable::value().
|
static |
Definition at line 63 of file ptypeEval.cc.
References osl::BLACK, osl::eval::ml::Weights::dimension(), eval(), osl::KING, osl::newPtypeO(), osl::eval::Ptype_Eval_Table, osl::PTYPEO_MIN, osl::eval::ml::Weights::value(), osl::eval::PtypeEvalTable::value(), and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::doResetWeights(), and osl::eval::PtypeEvalTable::reset().
|
static |
Definition at line 89 of file ptypeEval.cc.
References osl::PTYPEO_MIN.
Referenced by osl::eval::ml::OpenMidEndingEval::captureValue(), and eval().
|
staticprivate |
Definition at line 84 of file ptypeEval.h.
Referenced by osl::eval::PtypeEvalTable::reset().