ProDeo
Would you like to react to this message? Create an account in a few clicks or log in to continue.
ProDeo

Computer Chess
 
HomeHome  CalendarCalendar  Latest imagesLatest images  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Post new topic   Reply to topic
 

 Adding Polyglot books to your engine in 15 minutes

Go down 
AuthorMessage
Admin
Admin
Admin


Posts : 2541
Join date : 2020-11-17
Location : Netherlands

Adding Polyglot books to your engine in 15 minutes Empty
PostSubject: Adding Polyglot books to your engine in 15 minutes   Adding Polyglot books to your engine in 15 minutes EmptyWed 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 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.

.....

http://rebel13.nl/download/books.html
Back to top Go down
http://rebel13.nl/
 
Adding Polyglot books to your engine in 15 minutes
Back to top 
Page 1 of 1

Permissions in this forum:You can reply to topics in this forum
ProDeo :: Programmer Corner-
Post new topic   Reply to topicJump to: