#include "osl/state/numEffectState.h"
#include "osl/effect_util/effectUtil.h"
#include "osl/container/moveVector.h"
#include "osl/record/csa.h"
#include "osl/move_generator/legalMoves.h"
#include <boost/random/mersenne_twister.hpp>
#include <string>
#include <sys/time.h>
Go to the source code of this file.
Functions | |
void | showState (const NumEffectState &state) |
Move | selectMove (const NumEffectState &state, const MoveVector &moves) |
ランダムに選ぶ More... | |
bool | isMated (const NumEffectState &state) |
指した後,王が取られたら負け More... | |
int | main () |
bool isMated | ( | const NumEffectState & | state) |
指した後,王が取られたら負け
Definition at line 43 of file random_play.cc.
References osl::alt().
Referenced by main().
int main | ( | ) |
Definition at line 48 of file random_play.cc.
References osl::csaShow(), osl::move_generator::capture::generate(), osl::HIRATE, isMated(), moves, selectMove(), showState(), and osl::record::csa::strToMove().
Move selectMove | ( | const NumEffectState & | state, |
const MoveVector & | moves | ||
) |
ランダムに選ぶ
Definition at line 30 of file random_play.cc.
References osl::misc::random().
Referenced by main().
void showState | ( | const NumEffectState & | state) |
Definition at line 18 of file random_play.cc.
Referenced by main().