Computer Chess Club Archives




Subject: Re: Tablebase Access Code

Author: Robert Hyatt

Date: 19:05:54 04/26/00

Go up one level in this thread

On April 26, 2000 at 19:17:31, Roberto Waldteufel wrote:

>On April 26, 2000 at 07:53:17, Robert Hyatt wrote:
>>On April 26, 2000 at 04:40:15, Roberto Waldteufel wrote:
>>>Hello all,
>>>Some time ago I wrote a chess program called Rabbit, and after a long period of
>>>inactivity I have started working on it again. At present it does not have
>>>tablebases, and I would like to add this capability to it. I know that Dr
>>>Nalimov's tablebases are available for download from Dr Hyatt's ftp site, but my
>>>main problem is not knowing how to access the data from them. I expect that
>>>source code for this will be in C, which is not the language I use for
>>>programming, so I really need either to understand the precise formula for
>>>looking up a position or else to obtain a compiled version of the access code
>>>that my program could call. My target platform is Windows on a P3/450, so a DLL
>>>would be perfect for this. I wonder if such a DLL exists, and if so where can I
>>>find it? Alternatively, is there public information about the position -->
>>>address mapping of sufficient detail to allow me to program the lookups myself?
>>>Any help would be most welcome.
>>>Best wishes,
>>Your best bet is to look at his probe code, written in c++.  If you are using
>>a compiled language, it ought to be possible to call this stuff from within
>>your program.
>Thank you for your reply. I use a Powerbasic compiler, which can certainly cope
>with calling external functions and subs from other .exe/.dll files. Since I
>last worked on Rabbit I have written a grandmaster level checkers program (now
>released), and for tablebase access in that I call a lookup function in a dll,
>supplying position information as parameters. I had the same problem there at
>first - there was public domain C-code for the accesses, but I needed something
>I could call from inside my own program. Fortunately I found someone who was
>willing to write me a dll for lookups in exchange for a freebie copy of the
>program. I would be interested to get the probe C-code in case I can make enough
>sense of it to rewrite it in powerbasic, or else to find a way to have it
>compiled in such a way as to be able to call it externally.
>Best wishes,

the file (on my ftp site) has the source code for the probe
stuff, plus some minimal documentation on how to use it...

This page took 0.03 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

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