定跡がある間は定跡を使うComputerPlayer [詳細]
#include <bookPlayer.h>
Public メソッド | |
BookPlayer (OpeningBookTracer *, ComputerPlayer *) | |
所有権移転: new したものを渡すこと | |
~BookPlayer () | |
ComputerPlayer * | clone () 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< ComputerPlayer > | searcher |
int | book_limit |
int | current_moves |
bool | valid_initial_position |
定跡がある間は定跡を使うComputerPlayer
bookPlayer.h の 16 行で定義されています。
osl::game_playing::BookPlayer::BookPlayer | ( | OpeningBookTracer * | b, | |
ComputerPlayer * | s | |||
) |
osl::game_playing::BookPlayer::~BookPlayer | ( | ) |
bookPlayer.cc の 19 行で定義されています。
void osl::game_playing::BookPlayer::allowSpeculativeSearch | ( | bool | value | ) | [virtual] |
相手時間の探索を許可する (GameManager が操作)
osl::game_playing::ComputerPlayerを再定義しています。
bookPlayer.cc の 104 行で定義されています。
参照先 searcher.
bool osl::game_playing::BookPlayer::bookAvailable | ( | ) | const |
bookPlayer.cc の 62 行で定義されています。
参照先 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.cc の 24 行で定義されています。
参照先 book, BookPlayer(), と searcher.
bookPlayer.cc の 70 行で定義されています。
参照先 book, bookAvailable(), osl::Move::INVALID(), osl::game_playing::GameState::isIllegal(), と osl::Move::isNormal().
void osl::game_playing::BookPlayer::popMove | ( | ) | [virtual] |
osl::game_playing::ComputerPlayerを実装しています。
bookPlayer.cc の 53 行で定義されています。
参照先 book, current_moves, searcher, と valid_initial_position.
void osl::game_playing::BookPlayer::pushMove | ( | Move | m | ) | [virtual] |
osl::game_playing::ComputerPlayerを実装しています。
bookPlayer.cc の 45 行で定義されています。
参照先 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.cc の 83 行で定義されています。
参照先 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.cc の 92 行で定義されています。
参照先 osl::Move::isNormal(), moveByBook(), と searcher.
void osl::game_playing::BookPlayer::setBookLimit | ( | int | new_limit | ) |
void osl::game_playing::BookPlayer::setInitialState | ( | const NumEffectState & | state | ) | [virtual] |
osl::game_playing::ComputerPlayerを再定義しています。
bookPlayer.cc の 36 行で定義されています。
参照先 book, osl::HIRATE, と valid_initial_position.
void osl::game_playing::BookPlayer::setRootIgnoreMoves | ( | const container::MoveVector * | rim, | |
bool | prediction | |||
) | [virtual] |
注意: 定跡に関しては指定は無効
osl::game_playing::ComputerPlayerを再定義しています。
bookPlayer.cc の 111 行で定義されています。
参照先 searcher.
bool osl::game_playing::BookPlayer::stopSearchNow | ( | ) | [virtual] |
boost::scoped_ptr<OpeningBookTracer> osl::game_playing::BookPlayer::book [private] |
bookPlayer.h の 20 行で定義されています。
参照元 bookAvailable(), clone(), moveByBook(), popMove(), pushMove(), と setInitialState().
int osl::game_playing::BookPlayer::book_limit [private] |
bookPlayer.h の 22 行で定義されています。
参照元 bookAvailable(), と setBookLimit().
int osl::game_playing::BookPlayer::current_moves [private] |
bookPlayer.h の 23 行で定義されています。
参照元 bookAvailable(), popMove(), と pushMove().
boost::scoped_ptr<ComputerPlayer> osl::game_playing::BookPlayer::searcher [private] |
bookPlayer.h の 21 行で定義されています。
参照元 allowSpeculativeSearch(), clone(), popMove(), pushMove(), selectBestMove(), selectBestMoveInTime(), setRootIgnoreMoves(), と stopSearchNow().
bool osl::game_playing::BookPlayer::valid_initial_position [private] |
bookPlayer.h の 24 行で定義されています。
参照元 bookAvailable(), popMove(), pushMove(), と setInitialState().