My Project
|
#include <ptypeEval.h>
Public Member Functions | |
PtypeEvalTable () | |
~PtypeEvalTable () | |
void | init () |
int | value (PtypeO ptypeO) const |
先手から見たptypeOの駒の価値 | |
int | value (Ptype ptype) const |
ptypeの駒の価値 | |
int | promoteValue (PtypeO ptypeO) const |
ptypeOにpromoteした時の評価値の増減 | |
int | captureValue (PtypeO ptypeO) const |
ownerのptypeOがcaptureされた時の評価値の増減 | |
int | diffWithMove (const NumEffectState &, Move move) const |
void | reset (const CArray< int, PTYPE_SIZE > &values) |
Protected Attributes | |
CArray< int, PTYPEO_SIZE > | ptypeO2Val |
CArray< int, PTYPEO_SIZE > | promoteVal |
CArray< int, PTYPEO_SIZE > | captureVal |
Definition at line 15 of file ptypeEval.h.
osl::eval::PtypeEvalTable::PtypeEvalTable | ( | ) |
Definition at line 2 of file ptypeEval.cc.
References init().
osl::eval::PtypeEvalTable::~PtypeEvalTable | ( | ) |
Definition at line 22 of file ptypeEval.cc.
|
inline |
ownerのptypeOがcaptureされた時の評価値の増減
Definition at line 50 of file ptypeEval.h.
References captureVal, osl::isValidPtypeO(), and osl::PTYPEO_MIN.
Referenced by osl::eval::See::computeValue(), and diffWithMove().
|
inline |
Definition at line 54 of file ptypeEval.h.
References osl::Move::capturePtype(), osl::Move::capturePtypeO(), captureValue(), osl::Move::isPromotion(), promoteValue(), osl::PTYPE_EMPTY, and osl::Move::ptypeO().
Referenced by osl::eval::See::seeInternal().
void osl::eval::PtypeEvalTable::init | ( | ) |
Definition at line 6 of file ptypeEval.cc.
Referenced by PtypeEvalTable().
|
inline |
ptypeOにpromoteした時の評価値の増減
Definition at line 43 of file ptypeEval.h.
References osl::isPromoted(), promoteVal, and osl::PTYPEO_MIN.
Referenced by osl::eval::See::computeValue(), and diffWithMove().
void osl::eval::PtypeEvalTable::reset | ( | const CArray< int, PTYPE_SIZE > & | values | ) |
Definition at line 26 of file ptypeEval.cc.
References osl::CArray< T, Capacity >::begin(), osl::BLACK, osl::captured(), osl::CArray< T, Capacity >::end(), osl::isPiece(), osl::newPtypeO(), osl::PTYPE_MAX, osl::PTYPE_MIN, osl::PTYPEO_MAX, osl::PTYPEO_MIN, osl::unpromote(), and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingPtypeTable::OpenMidEndingPtypeTable().
|
inline |
ptypeの駒の価値
Definition at line 36 of file ptypeEval.h.
References osl::isValid(), ptypeO2Val, and osl::PTYPEO_MIN.
|
inline |
先手から見たptypeOの駒の価値
Definition at line 29 of file ptypeEval.h.
References osl::isValidPtypeO(), ptypeO2Val, and osl::PTYPEO_MIN.
Referenced by osl::eval::ml::PieceEval::setUp().
|
protected |
Definition at line 20 of file ptypeEval.h.
Referenced by captureValue().
|
protected |
Definition at line 19 of file ptypeEval.h.
Referenced by promoteValue().
|
protected |
Definition at line 18 of file ptypeEval.h.