Author: martin fierz
Date: 14:21:45 05/01/02
Go up one level in this thread
On May 01, 2002 at 16:40:26, Alvaro Jose Povoa Cardoso wrote: >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? yes, that should be the case - else your program is broken. aloha martin > >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.