Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Opening Book

Author: David Blackman

Date: 18:19:22 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.

If you want to be portable that's probably the only way. I can't see anything
wrong with this. Accessing the disc should be a lot slower than packing and
unpacking bytes, so performance won't hurt. It's not exactly hard to implement
either.



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.