[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

BGonline.org Forums

Opening book format proposal - Computer content

Posted By: Michael Petch
Date: Monday, 31 January 2011, at 6:29 a.m.

In Response To: Opening book format proposal - Computer content (eXtreme Gammon)

Hi Xavier,

First, I think this is a good idea. Second, standardizing on an open format should benefit all the bots.

You mention that you preferred a fixed structure. I may be reading this wrong but there seems to be some variability. I read this as the file starts with a structure of entryType 0 (Main File header). There is exactly one of these. That is followed by a variable number of entryType 1 (Notes) as suggested by "can have multiple record", followed by a variable number of position records. How do you know how many Notes records there are? Or when saved to the "real" binary file are the record types part of the data structure itself (I don't know off hand what Delphi does when it writes a record).

Regarding Delphi strings, are strings saved in binary as old style pascal strings (where the length is hidden before the characters, and the string is NOT null terminated), or are these strings ultimately saved as string of characters with a null terminator?

One concern I would have with this structure is efficient searching. I may have missed something but would some unique hash of each record and some type of index go with this?

Thanks Xavier!

Messages In This Thread

 

Post Response

Your Name:
Your E-Mail Address:
Subject:
Message:

If necessary, enter your password below:

Password:

 

 

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

BGonline.org Forums is maintained by Stick with WebBBS 5.12.