Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Opening Book

Author: Miguel A. Ballicora

Date: 09:28:14 03/19/01

Go up one level in this thread


On March 19, 2001 at 04:48:54, David Rasmussen wrote:

>Hello there.
>
>I'm adding opening book support to my engine, but I've got a problem with
>figuring out a good portable book format. I have to be able to store binary
>data, such as a 64-bit hashkey, and I can't see any other way to do this in a
>portable way, than storing one byte at a time in the file, since I don't know
>how ints and other types are represented on various platforms.

Excellent point. Not only endianess would be a problem, but also
size of int, etc. I haven't implemented a book yet and there is still areas
of C that I have to get familiar with, so you just open my eyes in one of those.
It seems like one byte at a time, or similar variant, should be the only
portable way.

Regards,
Miguel
PS: Of course text will be very inefficient...


>
>Am I missing something obvious here?
>Do you have any other ideas of a good starting approach?



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.