Computer Chess Club Archives




Subject: Re: Nalimov-EGTBs in ANSI-C?

Author: Dave Gomboc

Date: 17:59:40 01/21/00

Go up one level in this thread

On January 21, 2000 at 18:50:24, Heiner Marxen wrote:

>I would like to add (the latest version of) the Nalimov EGTBs
>to my program Chest.  I understand that the probe code module
>from Eugene Nalimov ("egtb.cpp" in the Crafty distribution)
>is C++, in a non-trivial way (contains templates).
>My program up to now is pure ANSI-C, and I would very much prefer
>to stick to ANSI-C, since I want it to be portable to all those
>UNIX platforms, which have an ANSI-C compiler, but lack a C++ compiler
>(e.g. my development platform).
>Is it somehow possible to access the Nalimov EGTBs by pure
>ANSI-C source code?  All suggestions welcome!
>Heiner Marxen

I haven't looked at the Nalimov probing code (recently), but you may be able to
adapt the code to ANSI C by doing some #define and (multiple) #include hackery
to simulate the template stuff, e.g.

#define TemplateType float
#include "template_code.c"
#define TemplateType int
#include "template_code.c"

Kinda gross, but you asked. :)


This page took 0.04 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.