Scid
4.7.0
|
A PBook is a collection of chess positions, each with the corresponding ECO code, a mnemonic name, and the list of moves to reach the position. More...
#include <pbook.h>
Public Member Functions | |
std::pair< const char *, const char * > | findECOstr (Position *pos) const |
Retrieve an ECO string containing the ECO code and the mnemonic name. More... | |
ecoT | findECO (Position *pos) const |
Retrieve the ECO code of a position. More... | |
std::string | EcoSummary (const char *ecoPrefix) const |
unsigned | GetLineNumber () const |
unsigned | FewestPieces () const |
size_t | Size () const |
Static Public Member Functions | |
static std::pair< errorT, std::unique_ptr< PBook > > | ReadEcoFile (const char *FileName) |
Read a file with a list of ECO codes and creates a PBook object. More... | |
A PBook is a collection of chess positions, each with the corresponding ECO code, a mnemonic name, and the list of moves to reach the position.
std::string PBook::EcoSummary | ( | const char * | ecoPrefix | ) | const |
std::pair< const char *, const char * > PBook::findECOstr | ( | Position * | pos | ) | const |
Read a file with a list of ECO codes and creates a PBook object.
The file is composed of lines like this: C50a "Italian Game" 1.e4 e5 2.Nf3 Nc6 3.Bc4 *
FileName | the name of the file to be read. |