Article View: gnu.chess
Article #4917Re: opening book ... how to augment?
From: Chua Kong Sian
Date: Sat, 25 Jun 1994 02:26
Date: Sat, 25 Jun 1994 02:26
31 lines
2303 bytes
2303 bytes
Collins Williams (wmsc@aursx7.aur.alcatel.com) wrote: : Hello all, : I would like to understand how to mess with : gnu chess's opeing book. As I undestand the makefile. Existing book : is run through gnuchessr and the gnuchess.data file is produced. : What information is stored in this file? How does gnuchess decide : wether to stay in book or to strike out on its own. Can it ever stumble : back into book? What kinds of lines can or should I add to the book : at by site to experiment with improving it? If you look at book.c, you can see a structure called bookentry which describes what is stored in gnuchess.data. Basically, these are the hashkey and hashboard for a position, a possible move, a hint (which is a reply to the move), a count of how many times this position has been seen in the book and a flag. There is a variable called BOOKFAIL in gnuchess.h (currently set to 8) which controls if gnuchess will ever refer to the book. Once the program leaves the book, if for the next 8 tries it can't find any move from the book, gnuchess decides that the book is no longer useful and will not refer to it anymore. This mean that yes, the program can stumble back into the book even if it leaves it. As for what kinds of lines you want to add to the book, I think anything goes. Note that you can add poor moves in the book by indicating them with a ? (e.g. Ng5?). Gnuchess will recognize the ? and the program will never play this move. Kong Sian
Technical Details
Message-ID:
<2ug4l4$smi@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!swrinde!gatech!usenet.ins.cwru.edu!news.ecn.bgu.edu!psuvax1!news.pop.psu.edu!news.cac.psu.edu!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccksReferences:
<WMSC.94Jun24155111@aursx7.aur.alcatel.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,a84b238857565b06 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-06-24 20:28:06 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!swrinde!gatech!usenet.ins.cwru.edu!news.ecn.bgu.edu!psuvax1!news.pop.psu.edu!news.cac.psu.edu!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks From: nsrccks@leonis.nus.sg (Chua Kong Sian) Newsgroups: gnu.chess Subject: Re: opening book ... how to augment? Date: 25 Jun 1994 02:26:44 GMT Organization: National University of Singapore Lines: 32 Distribution: world Message-ID: <2ug4l4$smi@nuscc.nus.sg> References: <WMSC.94Jun24155111@aursx7.aur.alcatel.com> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]