Admin Admin
Posts : 2608 Join date : 2020-11-17 Location : Netherlands
| Subject: Adding Polyglot books to your engine in 15 minutes Wed Dec 09, 2020 12:05 pm | |
| PG.EXE is a simple util you call from your engine and it will return a book move within ~10 ms from any Polyglot book. Code: - Code:
-
char w[1000],s[1000]; 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 83For 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. ..... http://rebel13.nl/download/books.html | |
|