![fen pgn chess fen pgn chess](https://i.ytimg.com/vi/36dIBaVQV10/maxresdefault.jpg)
scoreunknown: The base score for all moves in a game with an unknown result.scoreblackloss: The base score for all black moves in a game won by white.scoreblackdraw: The base score for all black moves in a drawn game.scoreblackwin: The base score for all black moves in a game won by black.scorewhiteloss: The base score for all black moves in a game won by black.scorewhitedraw: The base score for all white moves in a drawn game.scorewhitewin: The base score for all white moves in a game won by white.The createbook function takes a number of optional named parameters that can be used to control what moves are included in the opening tree, and the scoring of the moves (which is used to produce move probabilities when picking a move using pickbookmove). Julia> writebooktofile(bk, "my-book.obk") You will probably want to save it to disk using writebooktofile afterwards, for instance like this: julia> bk = createbook("my-pgn-file.pgn")
![fen pgn chess fen pgn chess](https://i.imgur.com/quV5XXE.jpg)
The score is computed based on the W/L/D stats for the move, the ratings of the players who have played it, and on its popularity in more recent games.Ĭreates an opening book tree from one or more PGN files. score: The score of this move, used to obtain a probability distribution when picking a book move for a position.
![fen pgn chess fen pgn chess](https://images.chesscomfiles.com/proxy/i.gyazo.com/a910a8eb8b0aaf7ea05715aa5cd165ab/https/eaaaa69e93.png)