Author: Dan Honeycutt
Date: 09:33:49 06/11/04
Go up one level in this thread
On June 11, 2004 at 09:19:24, Thorsten Greiner wrote:
>On June 11, 2004 at 08:30:29, Uri Blass wrote:
>>
>>The question is how to do it.
>
>I would suggest to put a version number in the source file which you increment
>with each release. You can then assemble the names of the needed files like
>this:
>
>--> snip <--
>
>#include <stdio.h>
>
>#define VERSION "237"
>
>#define BOOKFILE "book_" VERSION ".bin"
>
>int main(int argc, char *argv[]) {
>
> printf("I will use bookfile %s\n", BOOKFILE);
>
> return 0;
>}
I strongly agree with Thorsten. I don't keep old versions of engines. When I
upgrade Movei, I copy the new version to my Movei folder and then rename the
executable to Movei.exe. That way I don't have to change anything in Winboard,
Arena etc. I don't think an engine should depend on it's name in order to find
it's data files.
Dan H.
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.