Computer Chess Club Archives


Search

Terms

Messages

Subject: question about using the nalimov tablebases for debugging

Author: Uri Blass

Date: 11:40:59 02/08/04


I think to try to debug my kpk code by the nalimov tablebases(I hope that I
already have code with no mistakes when the pawn is on the 7th) and the question
is how to write a function in c that get the result from the tablebases.

I need to write a function that get squares for white king,white pawn and black
king and tell me if the result is a win or a draw.

the squares on the board are 0-63 when a1=0 h1=7 h8=63

int findresult(whiteking,whitepawn,blackking,sidetomove) should get  integers
and give me the result.

The problem is how to write a function that only gives me the result based on
the position and is using the tables.

I guess that it should be only few lines of code and maybe some include for
Nalimov's code so thanks in advance for posting them.

Uri



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.