#include <weightTracer.h>
Public Member Functions | |
DeterminateWeightTracer (WeightedBook &book, bool verbose=false, const int topn=1, const int weight_coef_for_the_initial_move=16, const int weight_coef=10) | |
DeterminateWeightTracer (const DeterminateWeightTracer ©) | |
OpeningBookTracer * | clone () const |
new したものを返す More... | |
const Move | selectMove () const |
良い手を探す.状態は更新しない. More... | |
int | getTopn () const |
![]() | |
WeightTracer (WeightedBook &, bool verbose=false, const int weight_coef_for_the_initial_move=16, const int weight_coef=10) | |
WeightTracer (const WeightTracer &) | |
void | update (Move) |
指した手に対応して状態を更新する. More... | |
int | stateIndex () const |
bool | isOutOfBook () const |
void | popMove () |
一手前の状態に戻す More... | |
![]() | |
OpeningBookTracer () | |
virtual | ~OpeningBookTracer () |
bool | isVerbose () const |
Private Attributes | |
const int | topn |
< select a move from topn moves More... | |
Additional Inherited Members | |
![]() | |
typedef record::opening::WeightedBook | WeightedBook |
![]() | |
const osl::Move | selectMoveAtRandom (const std::vector< osl::record::opening::WMove > &moves) const |
![]() | |
WeightedBook & | book |
int | state_index |
int | start_index |
Player | turn |
osl::stack< int > | state_stack |
const int | weight_coef_for_the_initial_move |
const int | weight_coef |
Definition at line 51 of file weightTracer.h.
|
inlineexplicit |
Definition at line 56 of file weightTracer.h.
|
inline |
Definition at line 62 of file weightTracer.h.
|
virtual |
new したものを返す
Reimplemented from osl::game_playing::WeightTracer.
Definition at line 174 of file weightTracer.cc.
|
inline |
Definition at line 67 of file weightTracer.h.
References topn.
|
virtual |
良い手を探す.状態は更新しない.
Reimplemented from osl::game_playing::WeightTracer.
Definition at line 180 of file weightTracer.cc.
References book(), osl::record::opening::WeightedBook::getMoves(), osl::Move::INVALID(), moves, and verbose.
|
private |
< select a move from topn moves
Definition at line 54 of file weightTracer.h.
Referenced by getTopn().