My Project
|
StateとOBMoveを保持する. More...
#include <openingBook.h>
Public Member Functions | |
WinCountBook (const char *filename) | |
~WinCountBook () | |
int | winCount (int stateIndex) |
int | loseCount (int stateIndex) |
std::vector< OBMove > | moves (int stateIndex) |
Private Member Functions | |
int | readInt () |
void | seek (int offset) |
Private Attributes | |
int | nStates |
std::ifstream | ifs |
StateとOBMoveを保持する.
Stateはvector<OBMove>と黒から見たwinCount, loseCountを保持する OBMoveはMoveとそのMoveを採用した時のStateのindex ファイル形式 state数 - 4byte State - 16byte * state数
Definition at line 82 of file openingBook.h.
osl::book::WinCountBook::WinCountBook | ( | const char * | filename | ) |
Definition at line 29 of file openingBook.cc.
osl::book::WinCountBook::~WinCountBook | ( | ) |
Definition at line 42 of file openingBook.cc.
int osl::book::WinCountBook::loseCount | ( | int | stateIndex | ) |
Definition at line 91 of file openingBook.cc.
References osl::book::readInt().
std::vector< osl::book::OBMove > osl::book::WinCountBook::moves | ( | int | stateIndex | ) |
Definition at line 65 of file openingBook.cc.
References osl::Move::makeDirect(), and osl::book::readInt().
|
private |
Definition at line 47 of file openingBook.cc.
Referenced by WinCountBook().
|
private |
Definition at line 59 of file openingBook.cc.
int osl::book::WinCountBook::winCount | ( | int | stateIndex | ) |
Definition at line 84 of file openingBook.cc.
References osl::book::readInt().
|
private |
Definition at line 85 of file openingBook.h.
Referenced by WinCountBook().
|
private |
Definition at line 84 of file openingBook.h.
Referenced by WinCountBook().