クラス osl::game_playing::BookPlayer

定跡がある間は定跡を使うComputerPlayer [詳細]

#include <bookPlayer.h>

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

すべてのメンバ一覧

Public メソッド

 BookPlayer (OpeningBookTracer *, ComputerPlayer *)
 所有権移転: new したものを渡すこと
 ~BookPlayer ()
ComputerPlayerclone () const
 new したものを返す
void setBookLimit (int new_limit)
 何手まで定跡を使うかを設定.
void setInitialState (const NumEffectState &)
void pushMove (Move m)
void popMove ()
const MoveWithComment selectBestMove (const GameState &, int seconds, int elapsed, int byoyomi)
const MoveWithComment selectBestMoveInTime (const GameState &, const search::TimeAssigned &)
bool bookAvailable () const
void allowSpeculativeSearch (bool value)
 相手時間の探索を許可する (GameManager が操作)
virtual bool stopSearchNow ()
 探索をとめる
void setRootIgnoreMoves (const container::MoveVector *rim, bool prediction)
 注意: 定跡に関しては指定は無効

Private メソッド

const Move moveByBook (const GameState &state)

Private 変数

boost::scoped_ptr
< OpeningBookTracer
book
boost::scoped_ptr< ComputerPlayersearcher
int book_limit
int current_moves
bool valid_initial_position

説明

定跡がある間は定跡を使うComputerPlayer

bookPlayer.h16 行で定義されています。


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

osl::game_playing::BookPlayer::BookPlayer ( OpeningBookTracer b,
ComputerPlayer s 
)

所有権移転: new したものを渡すこと

bookPlayer.cc13 行で定義されています。

参照元 clone().

osl::game_playing::BookPlayer::~BookPlayer (  ) 

bookPlayer.cc19 行で定義されています。


関数

void osl::game_playing::BookPlayer::allowSpeculativeSearch ( bool  value  )  [virtual]

相手時間の探索を許可する (GameManager が操作)

osl::game_playing::ComputerPlayerを再定義しています。

bookPlayer.cc104 行で定義されています。

参照先 searcher.

bool osl::game_playing::BookPlayer::bookAvailable (  )  const

bookPlayer.cc62 行で定義されています。

参照先 book, book_limit, current_moves, と valid_initial_position.

参照元 moveByBook().

osl::game_playing::ComputerPlayer * osl::game_playing::BookPlayer::clone (  )  const [virtual]

new したものを返す

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

bookPlayer.cc24 行で定義されています。

参照先 book, BookPlayer(), と searcher.

const osl::Move osl::game_playing::BookPlayer::moveByBook ( const GameState state  )  [private]
void osl::game_playing::BookPlayer::popMove (  )  [virtual]

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

bookPlayer.cc53 行で定義されています。

参照先 book, current_moves, searcher, と valid_initial_position.

void osl::game_playing::BookPlayer::pushMove ( Move  m  )  [virtual]

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

bookPlayer.cc45 行で定義されています。

参照先 book, current_moves, searcher, と valid_initial_position.

const osl::search::MoveWithComment osl::game_playing::BookPlayer::selectBestMove ( const GameState ,
int  seconds,
int  elapsed,
int  byoyomi 
) [virtual]
引数:
seconds 残り持ち時間

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

bookPlayer.cc83 行で定義されています。

参照先 osl::Move::isNormal(), moveByBook(), と searcher.

const osl::search::MoveWithComment osl::game_playing::BookPlayer::selectBestMoveInTime ( const GameState state,
const search::TimeAssigned msec 
) [virtual]

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

bookPlayer.cc92 行で定義されています。

参照先 osl::Move::isNormal(), moveByBook(), と searcher.

void osl::game_playing::BookPlayer::setBookLimit ( int  new_limit  ) 

何手まで定跡を使うかを設定.

-1 なら無限大

bookPlayer.cc30 行で定義されています。

参照先 book_limit.

void osl::game_playing::BookPlayer::setInitialState ( const NumEffectState &  state  )  [virtual]

osl::game_playing::ComputerPlayerを再定義しています。

bookPlayer.cc36 行で定義されています。

参照先 book, osl::HIRATE, と valid_initial_position.

void osl::game_playing::BookPlayer::setRootIgnoreMoves ( const container::MoveVector rim,
bool  prediction 
) [virtual]

注意: 定跡に関しては指定は無効

osl::game_playing::ComputerPlayerを再定義しています。

bookPlayer.cc111 行で定義されています。

参照先 searcher.

bool osl::game_playing::BookPlayer::stopSearchNow (  )  [virtual]

探索をとめる

osl::game_playing::ComputerPlayerを再定義しています。

bookPlayer.cc118 行で定義されています。

参照先 searcher.


変数

bookPlayer.h20 行で定義されています。

参照元 bookAvailable(), clone(), moveByBook(), popMove(), pushMove(), と setInitialState().

bookPlayer.h22 行で定義されています。

参照元 bookAvailable(), と setBookLimit().

bookPlayer.h23 行で定義されています。

参照元 bookAvailable(), popMove(), と pushMove().

bookPlayer.h24 行で定義されています。

参照元 bookAvailable(), popMove(), pushMove(), と setInitialState().


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