定跡がある間は定跡を使うComputerPlayer More...
#include <bookPlayer.h>


Public Member Functions | |
| 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 Member Functions | |
| const Move | moveByBook (const GameState &state) |
Private Attributes | |
| boost::scoped_ptr < OpeningBookTracer > | book |
| boost::scoped_ptr< ComputerPlayer > | searcher |
| int | book_limit |
| int | current_moves |
| bool | valid_initial_position |
定跡がある間は定跡を使うComputerPlayer
Definition at line 16 of file bookPlayer.h.
所有権移転: new したものを渡すこと
Definition at line 13 of file bookPlayer.cc.
Definition at line 19 of file bookPlayer.cc.
| void osl::game_playing::BookPlayer::allowSpeculativeSearch | ( | bool | value | ) | [virtual] |
相手時間の探索を許可する (GameManager が操作)
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 104 of file bookPlayer.cc.
References osl::game_playing::ComputerPlayer::allowSpeculativeSearch().
| bool osl::game_playing::BookPlayer::bookAvailable | ( | ) | const |
Definition at line 62 of file bookPlayer.cc.
References book().
| osl::game_playing::ComputerPlayer * osl::game_playing::BookPlayer::clone | ( | ) | const [virtual] |
new したものを返す
Implements osl::game_playing::ComputerPlayer.
Definition at line 24 of file bookPlayer.cc.
References book().
| const osl::Move osl::game_playing::BookPlayer::moveByBook | ( | const GameState & | state | ) | [private] |
Definition at line 70 of file bookPlayer.cc.
References book(), osl::Move::INVALID(), osl::game_playing::GameState::isIllegal(), and osl::Move::isNormal().
| void osl::game_playing::BookPlayer::popMove | ( | ) | [virtual] |
Implements osl::game_playing::ComputerPlayer.
Definition at line 53 of file bookPlayer.cc.
References book().
| void osl::game_playing::BookPlayer::pushMove | ( | Move | m | ) | [virtual] |
Implements osl::game_playing::ComputerPlayer.
Definition at line 45 of file bookPlayer.cc.
References book().
| const osl::search::MoveWithComment osl::game_playing::BookPlayer::selectBestMove | ( | const GameState & | , |
| int | seconds, | ||
| int | elapsed, | ||
| int | byoyomi | ||
| ) | [virtual] |
| seconds | 残り持ち時間 |
Implements osl::game_playing::ComputerPlayer.
Definition at line 83 of file bookPlayer.cc.
References osl::Move::isNormal().
| const osl::search::MoveWithComment osl::game_playing::BookPlayer::selectBestMoveInTime | ( | const GameState & | state, |
| const search::TimeAssigned & | msec | ||
| ) | [virtual] |
Implements osl::game_playing::ComputerPlayerSelectBestMoveInTime.
Definition at line 92 of file bookPlayer.cc.
References osl::Move::isNormal().
| void osl::game_playing::BookPlayer::setBookLimit | ( | int | new_limit | ) |
| void osl::game_playing::BookPlayer::setInitialState | ( | const NumEffectState & | state | ) | [virtual] |
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 36 of file bookPlayer.cc.
References book(), and osl::HIRATE.
| void osl::game_playing::BookPlayer::setRootIgnoreMoves | ( | const container::MoveVector * | rim, |
| bool | prediction | ||
| ) | [virtual] |
注意: 定跡に関しては指定は無効
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 111 of file bookPlayer.cc.
References osl::game_playing::ComputerPlayer::setRootIgnoreMoves().
| bool osl::game_playing::BookPlayer::stopSearchNow | ( | ) | [virtual] |
探索をとめる
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 118 of file bookPlayer.cc.
boost::scoped_ptr<OpeningBookTracer> osl::game_playing::BookPlayer::book [private] |
Definition at line 20 of file bookPlayer.h.
int osl::game_playing::BookPlayer::book_limit [private] |
Definition at line 22 of file bookPlayer.h.
int osl::game_playing::BookPlayer::current_moves [private] |
Definition at line 23 of file bookPlayer.h.
boost::scoped_ptr<ComputerPlayer> osl::game_playing::BookPlayer::searcher [private] |
Definition at line 21 of file bookPlayer.h.
bool osl::game_playing::BookPlayer::valid_initial_position [private] |
Definition at line 24 of file bookPlayer.h.
1.7.6.1