WeightedBookの追跡 More...
#include <weightTracer.h>


| Public Types | |
| typedef record::opening::WeightedBook | WeightedBook | 
| Public Member Functions | |
| WeightTracer (WeightedBook &, bool verbose=false, const int weight_coef_for_the_initial_move=16, const int weight_coef=10) | |
| WeightTracer (const WeightTracer &) | |
| OpeningBookTracer * | clone () const | 
| new したものを返す  More... | |
| void | update (Move) | 
| 指した手に対応して状態を更新する.  More... | |
| const Move | selectMove () const | 
| 良い手を探す.状態は更新しない.  More... | |
| int | stateIndex () const | 
| bool | isOutOfBook () const | 
| void | popMove () | 
| 一手前の状態に戻す  More... | |
|  Public Member Functions inherited from osl::game_playing::OpeningBookTracer | |
| OpeningBookTracer () | |
| virtual | ~OpeningBookTracer () | 
| bool | isVerbose () const | 
| Protected Member Functions | |
| const osl::Move | selectMoveAtRandom (const std::vector< osl::record::opening::WMove > &moves) const | 
| Protected Attributes | |
| 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 | 
|  Protected Attributes inherited from osl::game_playing::OpeningBookTracer | |
| bool | verbose | 
WeightedBookの追跡
Definition at line 24 of file weightTracer.h.
Definition at line 27 of file weightTracer.h.
| 
 | explicit | 
Definition at line 15 of file weightTracer.cc.
References osl::game_playing::OpeningBookTracer::verbose.
| osl::game_playing::WeightTracer::WeightTracer | ( | const WeightTracer & | copy) | 
Definition at line 27 of file weightTracer.cc.
| 
 | virtual | 
new したものを返す
Implements osl::game_playing::OpeningBookTracer.
Reimplemented in osl::game_playing::DeterminateWeightTracer.
Definition at line 38 of file weightTracer.cc.
| 
 | virtual | 
Implements osl::game_playing::OpeningBookTracer.
Definition at line 90 of file weightTracer.cc.
| 
 | virtual | 
一手前の状態に戻す
Implements osl::game_playing::OpeningBookTracer.
Definition at line 80 of file weightTracer.cc.
References osl::alt(), and verbose.
| 
 | virtual | 
良い手を探す.状態は更新しない.
Implements osl::game_playing::OpeningBookTracer.
Reimplemented in osl::game_playing::DeterminateWeightTracer.
Definition at line 145 of file weightTracer.cc.
References book(), osl::record::opening::WeightedBook::getMoves(), osl::Move::INVALID(), and moves.
| 
 | protected | 
Definition at line 96 of file weightTracer.cc.
References osl::Move::INVALID(), osl::record::csa::show(), osl::misc::time_seeded_random(), verbose, and weight.
| 
 | inline | 
Definition at line 46 of file weightTracer.h.
References state_index.
| 
 | virtual | 
指した手に対応して状態を更新する.
Implements osl::game_playing::OpeningBookTracer.
Definition at line 44 of file weightTracer.cc.
References osl::alt(), book(), osl::ctime_r(), osl::record::opening::WeightedBook::getMoves(), moves, osl::Move::player(), osl::record::csa::show(), and verbose.
| 
 | protected | 
Definition at line 29 of file weightTracer.h.
| 
 | protected | 
Definition at line 30 of file weightTracer.h.
| 
 | protected | 
Definition at line 30 of file weightTracer.h.
Referenced by stateIndex().
| 
 | protected | 
Definition at line 32 of file weightTracer.h.
| 
 | protected | 
Definition at line 31 of file weightTracer.h.
| 
 | protected | 
Definition at line 35 of file weightTracer.h.
| 
 | protected | 
Definition at line 34 of file weightTracer.h.
 1.8.4
 1.8.4