Go to the source code of this file.
Classes | |
struct | WthorHeader |
Header for wthor files. More... | |
struct | WthorBase |
struct | Base |
Macros | |
#define | foreach_wthorgame(wgame, wbase) for ((wgame) = (wbase)->game ; (wgame) < (wbase)->game + (wbase)->header->n_games; ++(wgame)) |
Typedefs | |
typedef struct WthorHeader | WthorHeader |
Header for wthor files. More... | |
typedef struct WthorBase | WthorBase |
typedef struct Base | Base |
Functions | |
void | wthor_init (WthorBase *) |
Initialize a Wthor base. More... | |
bool | wthor_load (WthorBase *, const char *) |
Load a wthor base. More... | |
bool | wthor_save (WthorBase *, const char *) |
Save a wthor base. More... | |
void | wthor_test (const char *, struct Search *) |
Test Search with a wthor base. More... | |
void | wthor_eval (const char *, struct Search *, unsigned long long histogram[129][65]) |
Test Eval with a wthor base. More... | |
void | wthor_edaxify (const char *) |
Change players to "Edax (delorme)" and tourney to "Etudes" in a wthor base. More... | |
void | base_init (Base *) |
Initialize a game database. More... | |
void | base_free (Base *) |
Free resources of a game database. More... | |
bool | base_load (Base *, const char *) |
Load a game database. More... | |
void | base_save (const Base *, const char *) |
Save a game database. More... | |
void | base_append (Base *, const Game *) |
Add a game to a game database. More... | |
void | base_to_problem (Base *, const int, const char *) |
Convert a game database to a set of problems. More... | |
void | base_to_FEN (Base *, const int, const char *) |
Convert a game database to a set of problems. More... | |
void | base_analyze (Base *, struct Search *, const int, const bool) |
Base analysis. More... | |
void | base_complete (Base *, struct Search *) |
Base analysis. More... | |
void | base_unique (Base *) |
Make games unique in the game database. More... | |
void | base_compare (const char *, const char *) |
Base Compare. More... | |
Header file for game base management
#define foreach_wthorgame | ( | wgame, | |
wbase | |||
) | for ((wgame) = (wbase)->game ; (wgame) < (wbase)->game + (wbase)->header->n_games; ++(wgame)) |
typedef struct WthorHeader WthorHeader |
Header for wthor files.
struct WthorHeader
void base_compare | ( | const char * | file_1, |
const char * | file_2 | ||
) |
bool base_load | ( | Base * | base, |
const char * | file | ||
) |
void base_save | ( | const Base * | base, |
const char * | file | ||
) |
void base_to_FEN | ( | Base * | base, |
const int | n_empties, | ||
const char * | problem | ||
) |
Convert a game database to a set of problems.
base | Game base. |
n_empties | Number of empties. |
problem | Problems filename. |
void base_to_problem | ( | Base * | base, |
const int | n_empties, | ||
const char * | problem | ||
) |
Convert a game database to a set of problems.
base | Game base. |
n_empties | Number of empties. |
problem | Problems filename. |
void wthor_edaxify | ( | const char * | file | ) |
Change players to "Edax (delorme)" and tourney to "Etudes" in a wthor base.
file | Wthor game file. |
void wthor_eval | ( | const char * | file, |
Search * | search, | ||
unsigned long long | histogram[129][65] | ||
) |
void wthor_init | ( | WthorBase * | base | ) |
Initialize a Wthor base.
base | Wthor's base. |
bool wthor_load | ( | WthorBase * | base, |
const char * | file | ||
) |
Load a wthor base.
base | Wthor game base. |
file | Game file. |
bool wthor_save | ( | WthorBase * | base, |
const char * | file | ||
) |
Save a wthor base.
base | Wthor game base. |
file | Game file name. |