#include <fixedEval.h>
Public Member Functions | |
FixedEval () | |
void | setDrawValue (int value) |
int | drawValue () const |
Static Public Member Functions | |
static int | winByFoul (Player P) |
相手の王手千日手,打歩詰. | |
static int | winByLoop (Player P) |
駒得するループ. | |
static int | winByCheckmate (Player P) |
詰による勝 | |
static int | minusInfty (Player P) |
探索windowの下限 (負けでも更新される値) | |
static int | winThreshold (Player P) |
この値を越えれば勝. | |
static int | windowMax (Player P) |
探索して意味がある範囲 (偶数) | |
static int | brinkmatePenalty (Player P, int limit) |
必死(に見える)局面の評価値 Pが負けそう | |
static int | threatmatePenalty (Player P) |
末端で詰めろがかかっている場合のペナルティ. | |
static int | isWinValue (Player P, int val) |
勝かどうか. | |
Protected Member Functions | |
~FixedEval () | |
Private Attributes | |
int | draw_value |
Definition at line 12 of file fixedEval.h.
osl::search::FixedEval::~FixedEval | ( | ) | [inline, protected] |
Definition at line 16 of file fixedEval.h.
osl::search::FixedEval::FixedEval | ( | ) | [inline] |
Definition at line 18 of file fixedEval.h.
static int osl::search::FixedEval::brinkmatePenalty | ( | Player | P, |
int | limit | ||
) | [inline, static] |
必死(に見える)局面の評価値 Pが負けそう
limit | 受を生成した閾値 大きい方が信頼できる必死 |
Definition at line 76 of file fixedEval.h.
References osl::alt(), osl::eval::convert(), and winByFoul().
int osl::search::FixedEval::drawValue | ( | ) | const [inline] |
Definition at line 25 of file fixedEval.h.
References draw_value.
static int osl::search::FixedEval::isWinValue | ( | Player | P, |
int | val | ||
) | [inline, static] |
勝かどうか.
loop勝も含める
Definition at line 91 of file fixedEval.h.
References osl::eval::notLessThan(), and winByCheckmate().
Referenced by osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordCheckmateResult().
static int osl::search::FixedEval::minusInfty | ( | Player | P | ) | [inline, static] |
探索windowの下限 (負けでも更新される値)
Definition at line 53 of file fixedEval.h.
References osl::alt(), and winByCheckmate().
void osl::search::FixedEval::setDrawValue | ( | int | value | ) | [inline] |
Definition at line 21 of file fixedEval.h.
References draw_value.
static int osl::search::FixedEval::threatmatePenalty | ( | Player | P | ) | [inline, static] |
末端で詰めろがかかっている場合のペナルティ.
P に詰めろがかかっている場合に threatmatePenalty(P)を足す
Definition at line 84 of file fixedEval.h.
References osl::alt(), and winByFoul().
static int osl::search::FixedEval::winByCheckmate | ( | Player | P | ) | [inline, static] |
詰による勝
Definition at line 46 of file fixedEval.h.
References osl::eval::convert().
Referenced by isWinValue(), minusInfty(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordLoseByCheckmate(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordWinByCheckmate(), and windowMax().
static int osl::search::FixedEval::winByFoul | ( | Player | P | ) | [inline, static] |
相手の王手千日手,打歩詰.
考慮対象外の手は詰より評価を下げる.
Definition at line 31 of file fixedEval.h.
References osl::eval::convert().
Referenced by brinkmatePenalty(), threatmatePenalty(), and winByLoop().
static int osl::search::FixedEval::winByLoop | ( | Player | P | ) | [inline, static] |
駒得するループ.
考慮対象外の手は詰より評価を下げる.
Definition at line 39 of file fixedEval.h.
References winByFoul().
Referenced by osl::game_playing::SearchPlayer::setUpTable().
static int osl::search::FixedEval::windowMax | ( | Player | P | ) | [inline, static] |
static int osl::search::FixedEval::winThreshold | ( | Player | P | ) | [inline, static] |
この値を越えれば勝.
(奇数). loop勝も含める
Definition at line 60 of file fixedEval.h.
References osl::eval::convert().
Referenced by osl::search::AlphaBeta2< EvalT >::fullWindow(), osl::search::QuiescenceSearch2< EvalT >::search(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::SearchBase(), osl::search::QuiescenceSearch2< EvalT >::searchIteratively(), and osl::search::QuiescenceSearch2< EvalT >::staticValueWithThreat().
int osl::search::FixedEval::draw_value [private] |
Definition at line 14 of file fixedEval.h.
Referenced by drawValue(), and setDrawValue().