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


Public Member Functions | |
| BookPlayer (OpeningBookTracer *, ComputerPlayer *) | |
| 所有権移転: new したものを渡すこと More... | |
| ~BookPlayer () | |
| ComputerPlayer * | clone () const |
| new したものを返す More... | |
| void | setBookLimit (int new_limit) |
| 何手まで定跡を使うかを設定. More... | |
| 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 が操作) More... | |
| virtual bool | stopSearchNow () |
| 探索をとめる More... | |
| void | setRootIgnoreMoves (const container::MoveVector *rim, bool prediction) |
| 注意: 定跡に関しては指定は無効 More... | |
Public Member Functions inherited from osl::game_playing::ComputerPlayer | |
| ComputerPlayer () | |
| virtual | ~ComputerPlayer () |
| virtual bool | isReasonableMove (const GameState &, Move move, int pawn_sacrifice) |
Public Member Functions inherited from osl::game_playing::ComputerPlayerSelectBestMoveInTime | |
| virtual | ~ComputerPlayerSelectBestMoveInTime () |
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 |
Additional Inherited Members | |
Protected Attributes inherited from osl::game_playing::ComputerPlayer | |
| bool | speculative_search_allowed |
定跡がある間は定跡を使うComputerPlayer
Definition at line 16 of file bookPlayer.h.
| osl::game_playing::BookPlayer::BookPlayer | ( | OpeningBookTracer * | b, |
| ComputerPlayer * | s | ||
| ) |
所有権移転: new したものを渡すこと
Definition at line 13 of file bookPlayer.cc.
| osl::game_playing::BookPlayer::~BookPlayer | ( | ) |
Definition at line 19 of file bookPlayer.cc.
|
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().
|
virtual |
new したものを返す
Implements osl::game_playing::ComputerPlayer.
Definition at line 24 of file bookPlayer.cc.
References book().
Definition at line 70 of file bookPlayer.cc.
References book(), osl::Move::INVALID(), osl::game_playing::GameState::isIllegal(), and osl::Move::isNormal().
|
virtual |
Implements osl::game_playing::ComputerPlayer.
Definition at line 53 of file bookPlayer.cc.
References book().
|
virtual |
Implements osl::game_playing::ComputerPlayer.
Definition at line 45 of file bookPlayer.cc.
References book().
|
virtual |
| seconds | 残り持ち時間 |
Implements osl::game_playing::ComputerPlayer.
Definition at line 83 of file bookPlayer.cc.
References osl::Move::isNormal().
|
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) |
|
virtual |
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 36 of file bookPlayer.cc.
References book(), and osl::HIRATE.
|
virtual |
注意: 定跡に関しては指定は無効
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 111 of file bookPlayer.cc.
References osl::game_playing::ComputerPlayer::setRootIgnoreMoves().
|
virtual |
探索をとめる
Reimplemented from osl::game_playing::ComputerPlayer.
Definition at line 118 of file bookPlayer.cc.
|
private |
Definition at line 20 of file bookPlayer.h.
|
private |
Definition at line 22 of file bookPlayer.h.
|
private |
Definition at line 23 of file bookPlayer.h.
|
private |
Definition at line 21 of file bookPlayer.h.
|
private |
Definition at line 24 of file bookPlayer.h.
1.8.4