3 #ifndef OSL_PTYPEEVAL_H 4 #define OSL_PTYPEEVAL_H 71 #ifndef EVAL_ML_PIECEEVAL_H 72 #define EVAL_ML_PIECEEVAL_H 86 static void setUp(
const Weights &weights);
90 Move moved,
int last_value)
93 int value = last_value;
114 #endif // EVAL_ML_PIECEEVAL_H
Ptype unpromote(Ptype ptype)
ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す ...
CArray< int, PTYPEO_SIZE > ptypeO2Val
constexpr Player alt(Player player)
PtypeO capturePtypeO() const
PtypeO ptypeO() const
移動後のPtype, i.e., 成る手だった場合成った後
PtypeO newPtypeO(Player player, Ptype ptype)
bool isValidPtypeO(int ptypeO)
int value(Ptype ptype) const
ptypeの駒の価値
static int evalWithUpdate(const NumEffectState &, Move moved, int last_value)
bool isValid(Player player)
cast等で作られたplayerが正しいかどうかを返す
int captureValue(PtypeO ptypeO) const
ownerのptypeOがcaptureされた時の評価値の増減
const PtypeEvalTable Ptype_Eval_Table
Ptype capturePtype() const
PtypeO
Player + Ptype [-15, 15] PtypeO の O は Owner の O.
PtypeO oldPtypeO() const
移動前のPtypeO, i.e., 成る手だった場合成る前
bool isPromoted(Ptype ptype)
ptypeがpromote後の型かどうかのチェック
int diffWithMove(const NumEffectState &, Move move) const
PtypeO captured(PtypeO ptypeO)
unpromoteすると共に,ownerを反転する.
static CArray< int, PTYPEO_SIZE > table
void reset(const CArray< int, PTYPE_SIZE > &values)
int value(PtypeO ptypeO) const
先手から見たptypeOの駒の価値
int promoteValue(PtypeO ptypeO) const
ptypeOにpromoteした時の評価値の増減
CArray< int, PTYPEO_SIZE > captureVal
CArray< int, PTYPEO_SIZE > promoteVal