合法手をランダムに指す More...
#include <computerPlayer.h>
Public Member Functions | |
ComputerPlayer * | clone () const |
new したものを返す | |
~RandomPlayer () | |
void | pushMove (Move m) |
void | popMove () |
const MoveWithComment | selectBestMove (const GameState &, int, int, int) |
合法手をランダムに指す
Definition at line 83 of file computerPlayer.h.
Definition at line 73 of file computerPlayer.cc.
ComputerPlayer* osl::game_playing::RandomPlayer::clone | ( | ) | const [inline, virtual] |
new したものを返す
Implements osl::game_playing::ComputerPlayer.
Definition at line 86 of file computerPlayer.h.
void osl::game_playing::RandomPlayer::popMove | ( | ) | [virtual] |
Implements osl::game_playing::ComputerPlayer.
Definition at line 82 of file computerPlayer.cc.
void osl::game_playing::RandomPlayer::pushMove | ( | Move | m | ) | [virtual] |
Implements osl::game_playing::ComputerPlayer.
Definition at line 78 of file computerPlayer.cc.
const osl::search::MoveWithComment osl::game_playing::RandomPlayer::selectBestMove | ( | const GameState & | , |
int | seconds, | ||
int | elapsed, | ||
int | byoyomi | ||
) | [virtual] |
seconds | 残り持ち時間 |
Implements osl::game_playing::ComputerPlayer.
Definition at line 86 of file computerPlayer.cc.
References osl::move_generator::capture::generate(), moves, osl::game_playing::GameState::state(), and osl::misc::time_seeded_random().