Computer Chess Club Archives


Search

Terms

Messages

Subject: EGTB question to Martin Fierz

Author: Alvaro Jose Povoa Cardoso

Date: 13:40:26 05/01/02


Hello Martin,
how are you?

I'm trying to get the positiontoindex(p) and indextoposition() functions right.
So far indextoposition() looks allright by the board output it shows.
However positiontoindex(p) doesn't seem to be working correctly because for
diferent positions it gives a few same indices.
I should point out that I'm using PowerBasic Console Compiler 2.11

So I would like to ask you a question:
Will there allways be a one to one relationship between the indexing and
deindexing functions? In other words, let
   index1=positiontoindex(p1)
   p2 is computed by indextoposition(index1, p2, ...)
   index2=positiontoindex(p2)
   Will index1=index2 and p1=p2 allways be true?

Best regards,
Alvaro Cardoso






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.