StateとOBMoveを保持する. [詳細]
#include <openingBook.h>
Public メソッド | |
WinCountBook (const char *filename) | |
~WinCountBook () | |
int | getWinCount (int stateIndex) |
int | getLoseCount (int stateIndex) |
vector< OBMove > | getMoves (int stateIndex) |
Private メソッド | |
int | readInt () |
void | seek (int offset) |
Private 変数 | |
int | nStates |
std::ifstream | ifs |
StateとOBMoveを保持する.
Stateはvector<OBMove>と黒から見たwinCount, loseCountを保持する OBMoveはMoveとそのMoveを採用した時のStateのindex ファイル形式 state数 - 4byte State - 16byte * state数 + 黒のwinCount + 白のwinCount + OBMoveの数 + OBMoveの開始index OBMove - 8byte * OBMove数 + Move (4byte) + Stateのindex
openingBook.h の 98 行で定義されています。
osl::record::opening::WinCountBook::WinCountBook | ( | const char * | filename | ) |
openingBook.cc の 14 行で定義されています。
osl::record::opening::WinCountBook::~WinCountBook | ( | ) |
openingBook.cc の 27 行で定義されています。
int osl::record::opening::WinCountBook::getLoseCount | ( | int | stateIndex | ) |
openingBook.cc の 76 行で定義されています。
参照元 printStats(), と osl::game_playing::WinCountTracer::selectMove().
osl::vector< osl::record::opening::OBMove > osl::record::opening::WinCountBook::getMoves | ( | int | stateIndex | ) |
openingBook.cc の 50 行で定義されています。
参照先 osl::Move::makeDirect(), moves, nStates, readInt(), と seek().
参照元 printNextMoves(), osl::game_playing::WinCountTracer::selectMove(), と osl::game_playing::WinCountTracer::update().
int osl::record::opening::WinCountBook::getWinCount | ( | int | stateIndex | ) |
openingBook.cc の 69 行で定義されています。
参照元 printStats(), と osl::game_playing::WinCountTracer::selectMove().
int osl::record::opening::WinCountBook::readInt | ( | ) | [private] |
openingBook.cc の 32 行で定義されています。
参照先 ifs.
参照元 getLoseCount(), getMoves(), getWinCount(), と WinCountBook().
void osl::record::opening::WinCountBook::seek | ( | int | offset | ) | [private] |
std::ifstream osl::record::opening::WinCountBook::ifs [private] |
openingBook.h の 101 行で定義されています。
参照元 readInt(), seek(), と WinCountBook().
int osl::record::opening::WinCountBook::nStates [private] |
openingBook.h の 100 行で定義されています。
参照元 getMoves(), と WinCountBook().