Skip to content

Commit 7f29e8c

Browse files
committed
Update README.md about the details of random move
1 parent aadc5bb commit 7f29e8c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Polyglot
22
========
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.
46

57
## Installation
68
Make sure you have [node.js](http://nodejs.org/) installed. Then do:
@@ -27,7 +29,8 @@ Polyglot exposes following functions -
2729
#### find(fen, bookFile, findBest)
2830
find takes a fen string and a book file path and looks up the hash in the book
2931
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
3134
returns an empty string.
3235

3336
#### hash(fen)

0 commit comments

Comments
 (0)