File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
Polyglot
2
2
========
3
- Polyglot is a node module to search moves in polyglot format opening books.
3
+ Polyglot is a node module to search moves in polyglot format opening books. For
4
+ a description of the polyglot book format refer to
5
+ [ this] ( http://hardy.uhasselt.be/Toga/book_format.html ) link.
4
6
5
7
## Installation
6
8
Make sure you have [ node.js] ( http://nodejs.org/ ) installed. Then do:
@@ -27,7 +29,8 @@ Polyglot exposes following functions -
27
29
#### find(fen, bookFile, findBest)
28
30
find takes a fen string and a book file path and looks up the hash in the book
29
31
file. If findBest is true it returns the best move according to the weight
30
- otherwise it returns a random move with the given hash. If no move is found it
32
+ otherwise it returns a random move with the given hash. The chance of a random
33
+ move being returned is in proportion to its weight. If no move is found it
31
34
returns an empty string.
32
35
33
36
#### hash(fen)
You can’t perform that action at this time.
0 commit comments