100#define FLAG_BESTPATH_BLACK 4
void book_load(Book *, const char *)
Load the opening book.
Definition: book.c:1471
void book_negamax(Book *)
Negamax a book.
Definition: book.c:1684
void book_init(Book *)
Initialize the opening book.
Definition: book.c:1396
void book_stop_count_bestpath(Book *)
Definition: book.c:2323
int book_get_moves_with_position(Book *, const Board *, MoveList *, Position *)
Get a list of moves from the book.
Definition: book.c:2380
Position * book_show_for_api(Book *, Board *)
Display a position from the book.
Definition: book.c:2181
void book_check_base(Book *, const Base *)
Check positions from a game database.
Definition: book.c:2644
void book_stats_clean(Book *)
Definition: book.c:1365
void book_save(Book *, const char *)
Save an opening book.
Definition: book.c:1622
void book_new(Book *, int, int)
Create a new opening book.
Definition: book.c:1450
void book_free(Book *)
Free resources used by the opening book.
Definition: book.c:1422
void book_import(Book *, const char *)
Import an opening book.
Definition: book.c:1547
void book_deviate(Book *, Board *, const int, const int)
Deviate a book.
Definition: book.c:1963
void book_deepen(Book *)
Deepen a book.
Definition: book.c:1746
void book_preprocess(Book *)
clean opening book.
Definition: book.c:1436
void book_feed_hash(const Book *, Board *, Search *)
feed hash table from the opening book.
Definition: book.c:2824
void book_add_board(Book *, const Board *)
Add a position.
Definition: book.c:2485
void book_show(Book *, Board *)
Display a position from the book.
Definition: book.c:2155
void book_extract_positions(Book *, const int, const int)
print a set of position.
Definition: book.c:2737
void book_get_game_stats(Book *, const Board *, GameStats *)
Get game statistics from a position.
Definition: book.c:2444
void book_correct_solved(Book *)
Correct wrong solved score in the book.
Definition: book.c:1782
void book_fix(Book *)
Fix a book.
Definition: book.c:1723
void book_count_board_bestpath(Book *, Board *, Position *, const int, const int, const int)
count the number of "broad" best paths in book.
Definition: book.c:2338
void book_play(Book *)
Play.
Definition: book.c:1882
void book_add_game(Book *, const Game *)
Add positions from a game.
Definition: book.c:2515
void book_get_line(Book *, const Board *, const Move *, Line *)
Get a variation from the book.
Definition: book.c:2401
void book_export(Book *, const char *)
Export an opening book.
Definition: book.c:1589
void book_add_base(Book *, const Base *)
Add positions from a game database.
Definition: book.c:2556
void book_info(Book *)
display some book's informations.
Definition: book.c:2111
void book_sort(Book *book)
Sort a book.
Definition: book.c:1862
void book_merge(Book *, const Book *)
Merge two opening books.
Definition: book.c:1665
void book_link(Book *)
Link a book.
Definition: book.c:1701
void book_prune(Book *)
Prune a book.
Definition: book.c:2010
void book_fill(Book *book, const int)
Fill a book.
Definition: book.c:1922
void book_stats(Book *book)
print book statistics.
Definition: book.c:2773
void book_subtree(Book *, const Board *)
Prune a book.
Definition: book.c:2043
void book_enhance(Book *, Board *, const int, const int)
Enhance a book.
Definition: book.c:2075
bool book_get_moves(Book *, const Board *, MoveList *)
Get a list of moves from the book.
Definition: book.c:2360
void book_count_bestpath(Book *, Board *, Position *)
count the number of best paths in book.
Definition: book.c:2309
bool book_get_random_move(Book *, const Board *, Move *, const int)
Get a move at random from the opening book.
Definition: book.c:2426
void book_extract_skeleton(Book *, Base *)
Extract book draws to a game base.
Definition: book.c:2709
Stop
Definition: const.h:70
The opening book.
Definition: book.h:25
struct PositionStack * stack
Definition: book.h:44
int endcut_error
Definition: book.h:35
short year
Definition: book.h:27
int n
Definition: book.h:45
struct PositionArray * array
Definition: book.h:43
int n_empties
Definition: book.h:33
bool need_saving
Definition: book.h:47
int verbosity
Definition: book.h:36
int n_links
Definition: book.h:40
int level
Definition: book.h:32
Random random[1]
Definition: book.h:48
char minute
Definition: book.h:29
char second
Definition: book.h:29
char day
Definition: book.h:28
int n_todo
Definition: book.h:41
char hour
Definition: book.h:29
int n_nodes
Definition: book.h:39
char month
Definition: book.h:28
volatile Stop count_bestpath_stop
Definition: book.h:50
int midgame_error
Definition: book.h:34
Search * search
Definition: book.h:49
Game statistics.
Definition: book.h:57
unsigned long long n_draws
Definition: book.h:59
unsigned long long n_losses
Definition: book.h:60
unsigned long long n_lines
Definition: book.h:61
unsigned long long n_wins
Definition: book.h:58
a move (with its score) linking to another Position.
Definition: book.h:68
unsigned char move
Definition: book.h:70
signed char score
Definition: book.h:69
An array with positions.
Definition: book.c:1148
A position stored in the book.
Definition: book.h:77
unsigned int n_wins
Definition: book.h:87
Link leaf
Definition: book.h:79
struct Position::@3 score
unsigned int n_draws
Definition: book.h:88
unsigned char n_link
Definition: book.h:94
unsigned short n_opponent_bestpaths
Definition: book.h:85
unsigned char level
Definition: book.h:95
unsigned int n_lines
Definition: book.h:90
unsigned int n_losses
Definition: book.h:89
unsigned short n_player_bestpaths
Definition: book.h:84
Board board[1]
Definition: book.h:78
short value
Definition: book.h:92
short upper
Definition: book.h:92
Link * link
Definition: book.h:86
short lower
Definition: book.h:92
unsigned char flag
Definition: book.h:83
Miscellaneous utilities header.