駒の価値ベースの評価関数.
More...
#include <pieceEval.h>
駒の価値ベースの評価関数.
必ず偶数 先手有利 +, 後手有利 - 歩 PtypeEvalTraits<PAWN>::val 点
Definition at line 67 of file pieceEval.h.
osl::PieceEval::PieceEval |
( |
const NumEffectState & |
state) | |
|
|
explicit |
osl::eval::PieceEval::PieceEval |
( |
int |
v) | |
|
|
inlineexplicit |
osl::eval::PieceEval::PieceEval |
( |
) | |
|
void osl::eval::PieceEval::addVal |
( |
int |
d) | |
|
|
inlineprivate |
static int osl::eval::PieceEval::captureValue |
( |
PtypeO |
ptypeO) | |
|
|
inlinestatic |
void osl::eval::PieceEval::changeTurn |
( |
) | |
|
|
inline |
template<Player P>
static int osl::eval::PieceEval::computeDiffAfterMove |
( |
const NumEffectState & |
state, |
|
|
Move |
move |
|
) |
| |
|
static |
move による取り返し値の変化 (SOMA)
- move 後のマスだけ考える
- 基本は価値の小さい順に調べる
- 順番に関して,PROMOTE の有無は考えていない
- 現在,飛車や香の利きはmove の後ろにあるものしか伸びない
- ?? 駒が味方の駒を飛び越える手も考える
- 数値の価値は Player にとって.
- 王手などは気にしない
static int osl::eval::PieceEval::computeDiffAfterMove |
( |
const NumEffectState & |
state, |
|
|
Move |
move |
|
) |
| |
|
inlinestatic |
template<osl::Player P>
int osl::eval::PieceEval::computeDiffAfterMove |
( |
const NumEffectState & |
state, |
|
|
Move |
move |
|
) |
| |
template<Player P>
static int osl::eval::PieceEval::computeDiffAfterMoveForRP |
( |
const NumEffectState & |
state, |
|
|
Move |
move |
|
) |
| |
|
inlinestatic |
static int osl::eval::PieceEval::computeDiffAfterMoveForRP |
( |
const NumEffectState & |
state, |
|
|
Move |
move |
|
) |
| |
|
inlinestatic |
static int osl::eval::PieceEval::diffWithMove |
( |
const NumEffectState & |
, |
|
|
Move |
move |
|
) |
| |
|
inlinestatic |
int osl::eval::PieceEval::expect |
( |
const NumEffectState & |
, |
|
|
Move |
move |
|
) |
| const |
|
inline |
state でmoveを指した後の評価値を予測
Definition at line 141 of file pieceEval.h.
References osl::captured(), osl::Move::capturePtypeOSafe(), osl::getPtype(), osl::Move::isDrop(), osl::Move::isPass(), osl::Move::oldPtypeO(), osl::PTYPE_EMPTY, osl::eval::Ptype_Eval_Table, osl::Move::ptypeO(), result, val, osl::eval::PtypeEvalTable::value(), and value().
static int osl::eval::PieceEval::infty |
( |
) | |
|
|
inlinestatic |
static bool osl::eval::PieceEval::initialized |
( |
) | |
|
|
inlinestatic |
const Progress16 osl::eval::PieceEval::progress16 |
( |
) | |
const |
|
inline |
const Progress32 osl::eval::PieceEval::progress32 |
( |
) | |
const |
|
inline |
static int osl::eval::PieceEval::seeScale |
( |
) | |
|
|
inlinestatic |
const Move osl::eval::PieceEval::suggestMove |
( |
const NumEffectState & |
) | |
const |
|
inline |
void osl::eval::PieceEval::update |
( |
const NumEffectState & |
, |
|
|
Move |
last_move |
|
) |
| |
|
inline |
Definition at line 171 of file pieceEval.h.
References addVal(), osl::captured(), osl::Move::capturePtype(), osl::Move::capturePtypeO(), osl::Move::isDrop(), osl::Move::isPass(), osl::Move::oldPtypeO(), osl::PTYPE_EMPTY, osl::eval::Ptype_Eval_Table, osl::Move::ptypeO(), and osl::eval::PtypeEvalTable::value().
int osl::eval::PieceEval::value |
( |
) | |
const |
|
inline |
static int osl::eval::PieceEval::value |
( |
PtypeO |
ptypeO) | |
|
|
inlinestatic |
int osl::eval::PieceEval::val |
|
private |
The documentation for this class was generated from the following files: