クラス osl::game_playing::WeightTracer

WeightedBookの追跡. [詳細]

#include <weightTracer.h>

osl::game_playing::WeightTracerに対する継承グラフ
Inheritance graph
[凡例]
osl::game_playing::WeightTracerのコラボレーション図
Collaboration graph
[凡例]

すべてのメンバ一覧

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 &)
OpeningBookTracerclone () 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 変数

WeightedBookbook
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.h24 行で定義されています。


型定義

weightTracer.h27 行で定義されています。


コンストラクタとデストラクタ

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]

weightTracer.cc15 行で定義されています。

参照先 osl::game_playing::OpeningBookTracer::verbose.

参照元 clone().

osl::game_playing::WeightTracer::WeightTracer ( const WeightTracer copy  ) 

weightTracer.cc27 行で定義されています。


関数

osl::game_playing::OpeningBookTracer * osl::game_playing::WeightTracer::clone (  )  const [virtual]

new したものを返す

osl::game_playing::OpeningBookTracerを実装しています。

osl::game_playing::DeterminateWeightTracerで再定義されています。

weightTracer.cc38 行で定義されています。

参照先 WeightTracer().

bool osl::game_playing::WeightTracer::isOutOfBook (  )  const [virtual]

osl::game_playing::OpeningBookTracerを実装しています。

weightTracer.cc90 行で定義されています。

参照先 state_index.

参照元 update().

void osl::game_playing::WeightTracer::popMove (  )  [virtual]

一手前の状態に戻す

osl::game_playing::OpeningBookTracerを実装しています。

weightTracer.cc80 行で定義されています。

参照先 osl::changeTurn(), state_index, state_stack, turn, と osl::game_playing::OpeningBookTracer::verbose.

const osl::Move osl::game_playing::WeightTracer::selectMove (  )  const [virtual]

良い手を探す.状態は更新しない.

戻り値:
定跡をはずれたら Move::INVALID()

osl::game_playing::OpeningBookTracerを実装しています。

osl::game_playing::DeterminateWeightTracerで再定義されています。

weightTracer.cc145 行で定義されています。

参照先 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.h46 行で定義されています。

参照先 state_index.

void osl::game_playing::WeightTracer::update ( Move   )  [virtual]

変数

weightTracer.h30 行で定義されています。

参照元 selectMove().

osl::stack<int> osl::game_playing::WeightTracer::state_stack [protected]

weightTracer.h32 行で定義されています。

参照元 popMove(), と update().

weightTracer.h31 行で定義されています。

参照元 popMove(), と update().

weightTracer.h35 行で定義されています。

参照元 selectMove().

weightTracer.h34 行で定義されています。

参照元 selectMove().


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義
Sun May 16 09:58:20 2010に生成されました。  doxygen 1.6.3