#include "osl/move.h"
#include "osl/eval/pieceEval.h"
#include "osl/hash/hashKey.h"
#include "osl/misc/math.h"
#include "osl/record/csa.h"
#include "osl/record/csaRecord.h"
#include "osl/record/kanjiPrint.h"
#include "osl/record/record.h"
#include "osl/record/opening/openingBook.h"
#include "osl/search/fixedEval.h"
#include "osl/search/quiescenceSearch2.h"
#include "osl/search/quiescenceSearch2.tcc"
#include "osl/search/simpleHashTable.h"
#include "osl/state/numEffectState.h"
#include "osl/stl/vector.h"
#include <boost/format.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/program_options.hpp>
#include <boost/progress.hpp>
#include <boost/shared_ptr.hpp>
#include <deque>
#include <iostream>
#include <vector>
Go to the source code of this file.
Typedefs | |
typedef std::vector < osl::record::opening::WMove > | WMoveContainer |
Functions | |
int | qsearch (const osl::state::SimpleState &s, const osl::Move &lastMove) |
qsearch More... | |
void | showStatistics (const std::deque< int > &src) |
void | printUsage (std::ostream &out, char **argv, const boost::program_options::options_description &command_line_options) |
void | showInfoOfState (osl::record::opening::WeightedBook &book, const int state_index) |
void | doMain (const std::string &file_name) |
int | main (int argc, char **argv) |
Variables | |
bp::variables_map | vm |
osl::Player | the_player = osl::BLACK |
bool | is_dump = false |
int | error_threshold = 500 |
int | is_determinate = 0 |
int | max_depth |
int | non_determinate_depth |
double | ratio |
bool | is_quick = false |
boost::shared_ptr < osl::NumEffectState > | state_to_compare |
size_t | state_count = 0 |
typedef std::vector<osl::record::opening::WMove> WMoveContainer |
Definition at line 31 of file openingStatistics.cc.
void doMain | ( | const std::string & | file_name) |
Definition at line 115 of file openingStatistics.cc.
References osl::alt(), osl::BLACK, book(), depth, error_threshold, osl::record::opening::WeightedBook::getBoard(), osl::record::opening::WeightedBook::getMoves(), osl::record::opening::WeightedBook::getParents(), osl::record::opening::WeightedBook::getStartState(), osl::record::opening::WeightedBook::getStateIndex(), osl::record::opening::WeightedBook::getTotalState(), is_determinate, is_dump, max_depth, osl::eval::min(), moves, osl::hash::HashKey::newMakeMove(), non_determinate_depth, osl::Move::PASS(), osl::record::KanjiPrint::print(), qsearch(), ratio, showInfoOfState(), showStatistics(), state_count, state_to_compare, the_player, vm, weight, and osl::WHITE.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 302 of file openingStatistics.cc.
References osl::BLACK, doMain(), error_threshold, osl::record::Record::getInitialState(), osl::record::Record::getMoves(), osl::record::csa::CsaFile::getRecord(), is_determinate, is_dump, is_quick, max_depth, moves, non_determinate_depth, printUsage(), ratio, run(), state_to_compare, store(), the_player, vm, and osl::WHITE.
void printUsage | ( | std::ostream & | out, |
char ** | argv, | ||
const boost::program_options::options_description & | command_line_options | ||
) |
Definition at line 76 of file openingStatistics.cc.
int qsearch | ( | const osl::state::SimpleState & | s, |
const osl::Move & | lastMove | ||
) |
qsearch
s | state |
lastMove |
Definition at line 51 of file openingStatistics.cc.
References is_quick, and osl::state::SimpleState::turn().
void showInfoOfState | ( | osl::record::opening::WeightedBook & | book, |
const int | state_index | ||
) |
Definition at line 86 of file openingStatistics.cc.
References osl::record::opening::WeightedBook::getBlackWinCount(), osl::record::opening::WeightedBook::getBoard(), osl::record::opening::WeightedBook::getMoves(), osl::record::opening::WeightedBook::getWhiteWinCount(), moves, and osl::record::KanjiPrint::print().
Referenced by doMain().
void showStatistics | ( | const std::deque< int > & | src) |
Definition at line 66 of file openingStatistics.cc.
References osl::misc::computeStats().
Referenced by doMain(), and osl::rating::FeatureSet::~FeatureSet().
int error_threshold = 500 |
Definition at line 35 of file openingStatistics.cc.
int is_determinate = 0 |
Definition at line 36 of file openingStatistics.cc.
bool is_dump = false |
Definition at line 34 of file openingStatistics.cc.
bool is_quick = false |
Definition at line 39 of file openingStatistics.cc.
int max_depth |
Definition at line 37 of file openingStatistics.cc.
int non_determinate_depth |
Definition at line 37 of file openingStatistics.cc.
double ratio |
Definition at line 38 of file openingStatistics.cc.
size_t state_count = 0 |
Definition at line 42 of file openingStatistics.cc.
boost::shared_ptr<osl::NumEffectState> state_to_compare |
Definition at line 41 of file openingStatistics.cc.
osl::Player the_player = osl::BLACK |
Definition at line 33 of file openingStatistics.cc.
bp::variables_map vm |
Definition at line 29 of file openingStatistics.cc.