How can I use opening books?

Code, algorithms, languages, construction...
Post Reply
rmatorxnrn
Posts: 1
Joined: Mon Jul 09, 2012 9:46 pm
Real Name: Seungjae Lee

How can I use opening books?

Post by rmatorxnrn » Mon Jul 09, 2012 9:54 pm

Hello, I am a beginner programmer of C++, and few months ago I got interested in Chess Engines. I was currently looking at Winglet Chess Engine and modifying the code.

However, I got stuck on inserting opening books inside the program.

So, my question is,

What should I write in book.cpp and book.h to make my engine successfully use .bin opening book file during the game?


Thank you in advance!

syzygy
Posts: 148
Joined: Sun Oct 16, 2011 4:21 pm

Re: How can I use opening books?

Post by syzygy » Wed Jul 11, 2012 12:56 am

rmatorxnrn wrote:What should I write in book.cpp and book.h to make my engine successfully use .bin opening book file during the game?
I would suggest you first try to tackle some easier programming projects.

User avatar
Rebel
Posts: 515
Joined: Wed Jun 09, 2010 7:45 pm
Real Name: Ed Schroder

Re: How can I use opening books?

Post by Rebel » Wed Jul 11, 2012 6:37 am

rmatorxnrn wrote:Hello, I am a beginner programmer of C++, and few months ago I got interested in Chess Engines. I was currently looking at Winglet Chess Engine and modifying the code.

However, I got stuck on inserting opening books inside the program.

So, my question is,

What should I write in book.cpp and book.h to make my engine successfully use .bin opening book file during the game?


Thank you in advance!
http://www.top-5000.nl/tools.htm

Post Reply