Posts : 1418
Join date : 2020-11-17
Location : Netherlands
|Subject: Adding Polyglot books to your engine in 15 minutes Wed Dec 09, 2020 12:05 pm|| |
is a simple util you call from your engine and it will return a book move within ~10 ms from any Polyglot book.
sprintf(w,"pg.exe %s",s); // prepare polyglot book call
system(w); // call polyglot book
The string "s" should contain the EPD surrounded by quotation marks, example, the string "w" contains the start position -
pg.exe "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -" PG will return one of available book moves, such as:e2e4 52.42 16 20 83
For scanning the (blue) output will be stored on the screen but also in the file move.txt and secondly all available book moves are stored in the file book.txt. Run the DEMO program and try a few EPD's. That's all there is.