|
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(), and seek().
| std::vector< osl::book::OBMove > osl::book::WinCountBook::moves | ( | int | stateIndex | ) |
Definition at line 65 of file openingBook.cc.
References osl::Move::makeDirect(), moves(), nStates, osl::book::readInt(), and seek().
Referenced by moves().
|
private |
|
private |
Definition at line 59 of file openingBook.cc.
References ifs.
Referenced by loseCount(), moves(), and winCount().
| int osl::book::WinCountBook::winCount | ( | int | stateIndex | ) |
Definition at line 84 of file openingBook.cc.
References osl::book::readInt(), and seek().
|
private |
Definition at line 85 of file openingBook.h.
Referenced by readInt(), seek(), and WinCountBook().
|
private |
Definition at line 84 of file openingBook.h.
Referenced by moves(), and WinCountBook().