int n_empties
Definition: book.h:33
unsigned int n_losses
Definition: book.h:82
The opening book.
Definition: book.h:25
struct Position::@3 score
unsigned char done
Definition: book.h:89
void book_prune(Book *)
Prune a book.
Definition: book.c:1943
unsigned int n_wins
Definition: book.h:80
void book_enhance(Book *, Board *, const int, const int)
Enhance a book.
Definition: book.c:2006
short upper
Definition: book.h:85
short year
Definition: book.h:27
void book_deviate(Book *, Board *, const int, const int)
Deviate a book.
Definition: book.c:1896
void book_export(Book *, const char *)
Export an opening book.
Definition: book.c:1525
void book_deepen(Book *)
Deepen a book.
Definition: book.c:1682
char second
Definition: book.h:29
void book_save(Book *, const char *)
Save an opening book.
Definition: book.c:1558
void book_merge(Book *, const Book *)
Merge two opening books.
Definition: book.c:1601
int n_links
Definition: book.h:40
void book_link(Book *)
Link a book.
Definition: book.c:1637
void book_add_base(Book *, const Base *)
Add positions from a game database.
Definition: book.c:2286
void book_load(Book *, const char *)
Load the opening book.
Definition: book.c:1407
int midgame_error
Definition: book.h:34
unsigned long long n_losses
Definition: book.h:59
struct PositionStack * stack
Definition: book.h:44
unsigned char move
Definition: book.h:69
char month
Definition: book.h:28
struct Position Position
A position stored in the book.
void book_free(Book *)
Free resources used by the opening book.
Definition: book.c:1368
unsigned char level
Definition: book.h:88
void book_add_board(Book *, const Board *)
Add a position.
Definition: book.c:2215
void book_fill(Book *book, const int)
Fill a book.
Definition: book.c:1855
int n_todo
Definition: book.h:41
Game statistics.
Definition: book.h:56
char hour
Definition: book.h:29
void book_fix(Book *)
Fix a book.
Definition: book.c:1659
struct GameStats GameStats
Game statistics.
unsigned int n_lines
Definition: book.h:83
void book_show(Book *, Board *)
Display a position from the book.
Definition: book.c:2086
unsigned char n_link
Definition: book.h:87
void book_import(Book *, const char *)
Import an opening book.
Definition: book.c:1483
bool need_saving
Definition: book.h:47
int level
Definition: book.h:32
unsigned long long n_lines
Definition: book.h:60
char minute
Definition: book.h:29
unsigned int n_draws
Definition: book.h:81
void book_new(Book *, int, int)
Create a new opening book.
Definition: book.c:1386
unsigned long long n_wins
Definition: book.h:57
int n
Definition: book.h:45
Search * search
Definition: book.h:49
Random random[1]
Definition: book.h:48
void book_sort(Book *book)
Sort a book.
Definition: book.c:1797
Miscellaneous utilities header.
void book_check_base(Book *, const Base *)
Check positions from a game database.
Definition: book.c:2374
int verbosity
Definition: book.h:36
short lower
Definition: book.h:85
Link * link
Definition: book.h:79
char day
Definition: book.h:28
short value
Definition: book.h:85
bool book_get_random_move(Book *, const Board *, Move *, const int)
Get a move at random from the opening book.
Definition: book.c:2156
Board board[1]
Definition: book.h:77
signed char score
Definition: book.h:68
void book_correct_solved(Book *)
Correct wrong solved score in the book.
Definition: book.c:1718
void book_play(Book *)
Play.
Definition: book.c:1817
struct Link Link
a move (with its score) linking to another Position.
void book_info(Book *)
display some book's informations.
Definition: book.c:2042
void book_init(Book *)
Initialize the opening book.
Definition: book.c:1342
unsigned char todo
Definition: book.h:90
void book_get_game_stats(Book *, const Board *, GameStats *)
Get game statistics from a position.
Definition: book.c:2174
A position stored in the book.
Definition: book.h:76
unsigned long long n_draws
Definition: book.h:58
void book_stats(Book *book)
print book statistics.
Definition: book.c:2503
void book_subtree(Book *, const Board *)
Prune a book.
Definition: book.c:1975
struct Book Book
The opening book.
bool book_get_moves(Book *, const Board *, MoveList *)
Get a list of moves from the book.
Definition: book.c:2112
void book_extract_skeleton(Book *, Base *)
Extract book draws to a game base.
Definition: book.c:2439
int n_nodes
Definition: book.h:39
void book_feed_hash(const Book *, Board *, Search *)
feed hash table from the opening book.
Definition: book.c:2554
void book_add_game(Book *, const Game *)
Add positions from a game.
Definition: book.c:2245
int endcut_error
Definition: book.h:35
void book_negamax(Book *)
Negamax a book.
Definition: book.c:1620
void book_get_line(Book *, const Board *, const Move *, Line *)
Get a variation from the book.
Definition: book.c:2131
struct PositionArray * array
Definition: book.h:43
An array with positions.
Definition: book.c:1108
void book_extract_positions(Book *, const int, const int)
print a set of position.
Definition: book.c:2467
Link leaf
Definition: book.h:78
a move (with its score) linking to another Position.
Definition: book.h:67