WeightedBookの追跡. [詳細]
#include <weightTracer.h>


Public 型 | |
| typedef record::opening::WeightedBook | WeightedBook |
Public メソッド | |
| 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 したものを返す | |
| void | update (Move) |
| 指した手に対応して状態を更新する. | |
| const Move | selectMove () const |
| 良い手を探す.状態は更新しない. | |
| int | stateIndex () const |
| bool | isOutOfBook () const |
| void | popMove () |
| 一手前の状態に戻す | |
Protected メソッド | |
| const osl::Move | selectMoveAtRandom (const std::vector< osl::record::opening::WMove > &moves) const |
Protected 変数 | |
| 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 |
WeightedBookの追跡.
weightTracer.h の 24 行で定義されています。
weightTracer.h の 27 行で定義されています。
| osl::game_playing::WeightTracer::WeightTracer | ( | WeightedBook & | b, | |
| bool | verbose = false, |
|||
| const int | weight_coef_for_the_initial_move = 16, |
|||
| const int | weight_coef = 10 | |||
| ) | [explicit] |
| osl::game_playing::WeightTracer::WeightTracer | ( | const WeightTracer & | copy | ) |
weightTracer.cc の 27 行で定義されています。
| osl::game_playing::OpeningBookTracer * osl::game_playing::WeightTracer::clone | ( | ) | const [virtual] |
new したものを返す
osl::game_playing::OpeningBookTracerを実装しています。
osl::game_playing::DeterminateWeightTracerで再定義されています。
weightTracer.cc の 38 行で定義されています。
参照先 WeightTracer().
| bool osl::game_playing::WeightTracer::isOutOfBook | ( | ) | const [virtual] |
osl::game_playing::OpeningBookTracerを実装しています。
weightTracer.cc の 90 行で定義されています。
参照先 state_index.
参照元 update().
| void osl::game_playing::WeightTracer::popMove | ( | ) | [virtual] |
一手前の状態に戻す
osl::game_playing::OpeningBookTracerを実装しています。
weightTracer.cc の 80 行で定義されています。
参照先 osl::changeTurn(), state_index, state_stack, turn, と osl::game_playing::OpeningBookTracer::verbose.
| const osl::Move osl::game_playing::WeightTracer::selectMove | ( | ) | const [virtual] |
良い手を探す.状態は更新しない.
osl::game_playing::OpeningBookTracerを実装しています。
osl::game_playing::DeterminateWeightTracerで再定義されています。
weightTracer.cc の 145 行で定義されています。
参照先 book, osl::record::opening::WeightedBook::getMoves(), osl::Move::INVALID(), moves, selectMoveAtRandom(), start_index, state_index, weight_coef, と weight_coef_for_the_initial_move.
| const osl::Move osl::game_playing::WeightTracer::selectMoveAtRandom | ( | const std::vector< osl::record::opening::WMove > & | moves | ) | const [protected] |
| int osl::game_playing::WeightTracer::stateIndex | ( | ) | const [inline] |
weightTracer.h の 46 行で定義されています。
参照先 state_index.
| void osl::game_playing::WeightTracer::update | ( | Move | ) | [virtual] |
指した手に対応して状態を更新する.
osl::game_playing::OpeningBookTracerを実装しています。
weightTracer.cc の 44 行で定義されています。
参照先 book, osl::changeTurn(), osl::ctime_r(), osl::record::opening::WeightedBook::getMoves(), isOutOfBook(), moves, osl::Move::player(), osl::record::csa::show(), state_index, state_stack, turn, と osl::game_playing::OpeningBookTracer::verbose.
WeightedBook& osl::game_playing::WeightTracer::book [protected] |
weightTracer.h の 29 行で定義されています。
参照元 osl::game_playing::DeterminateWeightTracer::selectMove(), selectMove(), と update().
int osl::game_playing::WeightTracer::start_index [protected] |
weightTracer.h の 30 行で定義されています。
参照元 selectMove().
int osl::game_playing::WeightTracer::state_index [protected] |
weightTracer.h の 30 行で定義されています。
参照元 isOutOfBook(), popMove(), osl::game_playing::DeterminateWeightTracer::selectMove(), selectMove(), stateIndex(), と update().
osl::stack<int> osl::game_playing::WeightTracer::state_stack [protected] |
weightTracer.h の 32 行で定義されています。
Player osl::game_playing::WeightTracer::turn [protected] |
weightTracer.h の 31 行で定義されています。
const int osl::game_playing::WeightTracer::weight_coef [protected] |
weightTracer.h の 35 行で定義されています。
参照元 selectMove().
const int osl::game_playing::WeightTracer::weight_coef_for_the_initial_move [protected] |
weightTracer.h の 34 行で定義されています。
参照元 selectMove().
1.6.3