|
Functions |
void | book_create (const char *szInputFileName, const char *szBinFileName) |
| create a book from a pgn file
|
void | book_listmoves (const char *szFen, const t_boolean bShowFen) |
| print moves in current posistion it will also check a swap colour
|
void | book_load (const char *szBinFileName) |
| load opening book it will do some checking to verify that the binary book is in the correct binary format
|
int | book_move (const char *szFen, char *szMove) |
| select a book move in current position return 0 if not a book move, 1 if my book, 2 if generic book it will also check for inverted colours
|
void | book_save (const char *szBinFileName) |
| save in memory representation of book into a binary file will be called upon book creation or when ascii version of book is present and binary not
|
int | book_selectbestmove (const int iPos, char *szMove, const int iReqScore) |
| select best move according to frequency played the moves with the highest frequency has the highest chance to be played TODO: add weighting factor according to result, the number of games won can come into weight
|
Variables |
st_book | book |
int | busy_book_creating |
int | curply |
st_history | m_boardhistory [MAX_GAME_LENGTH] |
int | xboard_mode |