Author Topic: Book for gnuchess  (Read 3071 times)

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
Book for gnuchess
« on: June 29, 2004, 06:46:25 am »
I'm new to Zaurus and Linux but I`m willing  to lerarn both. I`ve installed gnuchess and qboard but without the book it plays very monotonously. I'm wondering where I have to put book.pgn.gz and  book.pgn.gz.sig and if I have to gunzip the book.
 Yasen
« Last Edit: June 29, 2004, 06:47:00 am by Yasen »
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Book for gnuchess
« Reply #1 on: June 29, 2004, 09:49:31 pm »
You do need to gunzip the book.pgn.gz file and then convert the book.pgn file to book.dat, whose data is in the word size and endianness of the machine on which you create the book.dat file.  I created a book.dat file a long while ago and forgot how I did it.  Gnuchess may have an option to do the conversion for you.  I tried to upload the book.dat file in a zip file here, but I could not do it for some reason.

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Book for gnuchess
« Reply #2 on: June 30, 2004, 10:44:18 am »
every time I've compiled gnuchess -- it has created the books for me...
so I'd assume one could just check the normal makefile for the gnuschess install and see
the commands that are used.  It's proably a variation of computer-play-itself-with-depthX-and-dump-all-variations for 1 to 8 moves... or something.

Scott

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Book for gnuchess
« Reply #3 on: June 30, 2004, 09:43:57 pm »
The *.pgn files are records of actual games, and there are differently sized *.pgn files depending on how large of an opening book you want, so the book created by the compilation of gnuchess is probably not the same.

I have temporarily placed an almost 8 megabyte file on:

<link removed>

This file uncompresses into an 11 megabyte+ file.  Perhaps someone else will have better luck putting it in the ZUG download area, if the site administrator is willing to host the file.

I do not recall where the book.dat file has to be placed.  If I recall correctly, when you run gnuchess from the command line and make a move like c4, gnuchess informs you where it is looking for the book.dat file.  You can link that file with a command like:

ln -s /mnt/cf/book.dat book.dat

to create a symbolic link in the current directory to a book.dat file that is located on a compact flash card.
« Last Edit: July 01, 2004, 06:46:03 am by qx773 »

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Book for gnuchess
« Reply #4 on: June 30, 2004, 10:43:06 pm »

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
Book for gnuchess
« Reply #5 on: July 01, 2004, 04:06:20 am »
10x bouth of you
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Book for gnuchess
« Reply #6 on: July 01, 2004, 11:16:50 am »
does it play better now?

If so, I'll go give it a try...

normally, I just use aterm + xboard -ics  
and then my alias -->  g games *19tRs-C-b-B-d
so I can follow high ranked players.

see:  http://zaurus.spy.org/screenshots/scottyel...jpg/xboard1.jpg

Scott

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Book for gnuchess
« Reply #7 on: July 03, 2004, 01:23:49 am »
Tonight, I installed the gnuchess 5.04 program into the internal memory of my Zaurus SL-C760.  The gnuchess program apparently looks in the current directory for the book.dat file.  So, if you go into the terminal program and type the link command that I mentioned above when the book.dat file is on a compact flash card, gnuchess will use the opening book.  Alternatively, if the book is on the SD card, you can use the command:

ln -s /mnt/card/book.dat book.dat

to create a symbolic link in the current directory to the book.dat file on the SD card.  I just played a game against gnuchess with the default settings and qboard 1.1 as the graphical user interface.  I won, but after I checkmated, I could not save the game.  Qboard informed me that gnuchess was no longer running.  I then could not play another game until I rebooted.  Perhaps there is a memory leak somewhere.

You can test to see if the opening book is being used in qboard by switching sides in the Options menu to play as black, then play as white, then play as black, etc.  The opening moves should be recognizable.
« Last Edit: July 03, 2004, 01:25:51 am by qx773 »