|
My Project
|
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) |
Typedefs | |
| typedef struct WthorHeader | WthorHeader |
| Header for wthor files. | |
| typedef struct WthorBase | WthorBase |
| typedef struct Base | Base |
Functions | |
| void | wthor_init (WthorBase *) |
| Initialize a Wthor base. | |
| bool | wthor_load (WthorBase *, const char *) |
| Load a wthor base. | |
| bool | wthor_save (WthorBase *, const char *) |
| Save a wthor base. | |
| void | wthor_test (const char *, struct Search *) |
| Test Search with a wthor base. | |
| void | wthor_eval (const char *, struct Search *, unsigned long long histogram[129][65]) |
| Test Eval with a wthor base. | |
| void | wthor_edaxify (const char *) |
| Change players to "Edax (delorme)" and tourney to "Etudes" in a wthor base. | |
| void | base_init (Base *) |
| Initialize a game database. | |
| void | base_free (Base *) |
| Free resources of a game database. | |
| bool | base_load (Base *, const char *) |
| Load a game database. | |
| void | base_save (const Base *, const char *) |
| Save a game database. | |
| void | base_append (Base *, const Game *) |
| Add a game to a game database. | |
| void | base_to_problem (Base *, const int, const char *) |
| Convert a game database to a set of problems. | |
| void | base_to_FEN (Base *, const int, const char *) |
| Convert a game database to a set of problems. | |
| void | base_analyze (Base *, struct Search *, const int, const bool) |
| Base analysis. | |
| void | base_complete (Base *, struct Search *) |
| Base analysis. | |
| void | base_unique (Base *) |
| Make games unique in the game database. | |
| void | base_compare (const char *, const char *) |
| Base Compare. | |
Header file for game base management
| #define foreach_wthorgame | ( | wgame, | |
| wbase ) |
| typedef struct Base Base |
| typedef struct WthorBase WthorBase |
| 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. |