#include <moveLogProb.h>
Public Member Functions | |
MoveLogProb (Move m, int l) | |
MoveLogProb () | |
void | setLogProb (int l) |
void | setLogProbAtLeast (int l) |
logProb を数字上最低 l にする. More... | |
void | setLogProbAtMost (int l) |
logProb を数字上最高 l にする. More... | |
const Move | move () const |
int | logProb () const |
bool | validMove () const |
Private Attributes | |
int | log_prob |
Additional Inherited Members | |
![]() | |
int | intValue () const |
unsigned int | hash () const |
駒を取らない手を [0, 16305] にmap More... | |
Move () | |
bool | isNormal () const |
INVALID でも PASS でもない. More... | |
bool | isPass () const |
Move (Square from, Square to, Ptype ptype, Ptype capture_ptype, bool is_promote, Player player) | |
移動 More... | |
Move (Square to, Ptype ptype, Player player) | |
drop More... | |
Move16 | toMove16 () const |
const Square | from () const |
const Square | to () const |
unsigned int | fromTo () const |
fromとtoをまとめて同一性の判定など More... | |
int | promoteMask () const |
pieceに使うためのmaskなので More... | |
bool | isPromotion () const |
bool | isCapture () const |
bool | isCaptureOrPromotion () const |
bool | isDrop () const |
bool | isPawnDrop () const |
Ptype | ptype () const |
PtypeO | ptypeO () const |
移動後のPtype, i.e., 成る手だった場合成った後 More... | |
PtypeO | oldPtypeO () const |
移動前のPtypeO, i.e., 成る手だった場合成る前 More... | |
Ptype | oldPtype () const |
移動前のPtype, i.e., 成る手だった場合成る前 More... | |
Ptype | capturePtype () const |
PtypeO | capturePtypeO () const |
PtypeO | capturePtypeOSafe () const |
Player | player () const |
bool | isValid () const |
bool | isInvalid () const |
state に apply 可能でない場合にtrue More... | |
bool | isValidOrPass () const |
Move | newFrom (Square new_from) const |
Move | newAddFrom (Square new_from) const |
const Move | newAddCapture (Piece capture) const |
no capture moveからcapture moveを作る More... | |
const Move | newCapture (Piece capture) const |
const Move | newCapture (Ptype capture) const |
const Move | unpromote () const |
promote moveからunpromote moveを作る More... | |
const Move | promote () const |
unpromote moveからpromote moveを作る More... | |
Move | newAddTo (Offset o) const |
moveのtoをoffsetだけ変える. 元のtoが0以外でも使える More... | |
Move | newAddTo (Square sq) const |
つくってあったmoveの雛形のsquareをsetする. mのtoは0 More... | |
Move | newAddPtype (Ptype newPtype) const |
作ってあったPTYPE_EMPTYのひな形のPTYPEをsetする More... | |
template<Player P> | |
bool | ignoreUnpromote () const |
合法手ではあるが,打歩詰め絡み以外では有利にはならない手. More... | |
bool | ignoreUnpromote () const |
template<Player P> | |
bool | hasIgnoredUnpromote () const |
MoveをunpromoteするとcutUnpromoteなMoveになる More... | |
bool | hasIgnoredUnpromote () const |
const Move | rotate180 () const |
![]() | |
static const Move | makeDirect (int value) |
static const Move | PASS (Player P) |
static const Move | INVALID () |
static const Move | DeclareWin () |
static const Move | fromMove16 (Move16, const state::SimpleState &) |
template<Player P> | |
static bool | ignoreUnpromote (Ptype ptype, Square from, Square to) |
![]() | |
static const int | BitOffsetPromote =Piece::BitOffsetMovePromote |
static const unsigned int | MaxUniqMoves =600 |
一局面辺りの合法手の最大値 重複して手を生成することがある場合は,600では不足かもしれない More... | |
Definition at line 9 of file moveLogProb.h.
|
inline |
Definition at line 13 of file moveLogProb.h.
References osl::Move::isInvalid(), and osl::Move::isValidOrPass().
|
inline |
Definition at line 17 of file moveLogProb.h.
|
inline |
Definition at line 40 of file moveLogProb.h.
References log_prob.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearchAfterMove(), osl::search::MoveGenerator::generateAll(), osl::game_playing::UsiResponse::genmoveProbability(), osl::LogProbCompare< isLess >::operator()(), osl::operator<(), osl::operator<<(), osl::operator==(), osl::search::CountRecorder::recordInvalidMoveInTable(), osl::search::SearchRecorder::retryMove(), osl::search::AlphaBeta2Tree< EvalT >::searchAllMoves(), setLogProbAtLeast(), setLogProbAtMost(), show(), osl::search::analyzer::DotWriter::showArc(), osl::search::SearchRecorder::tryMove(), and osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::validTableMove().
|
inline |
Definition at line 39 of file moveLogProb.h.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearch(), osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearchAfterMove(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::search::MoveGenerator::generateAll(), osl::search::MoveGenerator::generateBreakThreatmate(), osl::game_playing::UsiResponse::genmoveProbability(), osl::search::SimpleHashTable::getPV(), osl::search::AlphaBeta2Tree< EvalT >::nextMove(), osl::LogProbCompare< isLess >::operator()(), osl::operator<(), osl::operator<<(), osl::operator==(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordCheckmateResult(), osl::search::CountRecorder::recordInvalidMoveInTable(), osl::search::SearchRecorder::recordValue(), osl::search::SearchRecorder::retryMove(), osl::search::AlphaBeta2Tree< EvalT >::searchAllMoves(), osl::search::analyzer::DotWriter::showArc(), osl::search::analyzer::DotWriter::showNode(), osl::search::SearchRecorder::tableStoreLowerBound(), osl::search::SearchRecorder::tableStoreUpperBound(), osl::search::SearchRecorder::tryMove(), and osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::validTableMove().
|
inline |
Definition at line 19 of file moveLogProb.h.
References log_prob.
Referenced by setLogProbAtLeast(), and setLogProbAtMost().
|
inline |
logProb を数字上最低 l にする.
確率としては,高すぎる確率の場合, l に補正する
Definition at line 24 of file moveLogProb.h.
References logProb(), and setLogProb().
|
inline |
logProb を数字上最高 l にする.
確率としては,低すぎる確率の場合, l に補正する
Definition at line 33 of file moveLogProb.h.
References logProb(), and setLogProb().
Referenced by osl::search::AlphaBeta2Tree< EvalT >::nextMove().
|
inline |
Definition at line 41 of file moveLogProb.h.
References log_prob.
Referenced by osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::search::MoveGenerator::generateAll(), osl::search::AlphaBeta2Tree< EvalT >::nextMove(), osl::search::AlphaBeta2Tree< EvalT >::quiesce(), osl::search::AlphaBeta2Tree< EvalT >::quiesceRoot(), osl::search::AlphaBeta2Tree< EvalT >::searchAllMoves(), osl::search::SimpleHashRecord::setLowerBound(), osl::search::SimpleHashRecord::setUpperBound(), and osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::validTableMove().
|
private |
Definition at line 11 of file moveLogProb.h.
Referenced by logProb(), setLogProb(), and validMove().