Help Create Tiny Opening Book for GNUchess (to vary play)

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

chessdev
Posts: 31
Joined: Mon Apr 26, 2010 2:47 am

Help Create Tiny Opening Book for GNUchess (to vary play)

Post by chessdev »

I'm looking to get a TINY opening book for GNUchess that will help it vary the play. I'm thinking 4-5 moves deep only, just so that people who play will get to experience some randomness in the play. It needs to be TINY so that visitors to my website don't have to wait a long time for downloads. I'm thinking <50kb or even smaller!

Can anyone help with this? I'm happy to pay for your time.

Thanks!!

Erik
Dann Corbit
Posts: 12542
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by Dann Corbit »

chessdev wrote:I'm looking to get a TINY opening book for GNUchess that will help it vary the play. I'm thinking 4-5 moves deep only, just so that people who play will get to experience some randomness in the play. It needs to be TINY so that visitors to my website don't have to wait a long time for downloads. I'm thinking <50kb or even smaller!

Can anyone help with this? I'm happy to pay for your time.

Thanks!!

Erik
What version of GnuChess are you using?
chessdev
Posts: 31
Joined: Mon Apr 26, 2010 2:47 am

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by chessdev »

java version, but it shouldn't matter, right? we just need a book.dat file?
Dann Corbit
Posts: 12542
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by Dann Corbit »

chessdev wrote:java version, but it shouldn't matter, right? we just need a book.dat file?
I don't know. I suspect that is true, but I have not tried it.
Reading the Java version of Gnuchess blog, it seems that several bugs were fixed, including some having to do with the book. So I guess that I would want to build the book with the java version.
User avatar
hgm
Posts: 27814
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by hgm »

Doesn't GNUChess have randomness of its own (under control of the WiBoard random command), even without book?
chessdev
Posts: 31
Joined: Mon Apr 26, 2010 2:47 am

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by chessdev »

cool. can you help me do that if i give you some PGNs? i just want it to play randomly. maybe a book depth of 8, even. i'd be happy to pay for your time.
Dann Corbit
Posts: 12542
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by Dann Corbit »

chessdev wrote:cool. can you help me do that if i give you some PGNs? i just want it to play randomly. maybe a book depth of 8, even. i'd be happy to pay for your time.
I won't accept pay. Probably later tonight I will take a look. I guess it will only take me 15 minutes.

Tell me the target size for your book and I will make one that fits approximately.
chessdev
Posts: 31
Joined: Mon Apr 26, 2010 2:47 am

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by chessdev »

target size is under 20kb. all we really need is variety. maybe cutting off the book at 5 or 8 or 10 moves would work. even cutting off at 5 moves would yield thousands of possible games. :) smaller the better as it has to load in the browser.
Dann Corbit
Posts: 12542
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by Dann Corbit »

chessdev wrote:target size is under 20kb. all we really need is variety. maybe cutting off the book at 5 or 8 or 10 moves would work. even cutting off at 5 moves would yield thousands of possible games. :) smaller the better as it has to load in the browser.
It is very hard to make one an exact size, so I will create a series of books.
This one is 176,885 bytes:
http://cap.connx.com/chess-engines/new- ... ok.dat.bz2
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: Help Create Tiny Opening Book for GNUchess (to vary play

Post by Michel »

Doesn't GNUChess have randomness of its own (under control of the WiBoard random command), even without book?
In GnuChess 5 the random command is a noop.

It's not clear to me why.