Author: Fernando Rodriguez
Date: 02:32:38 10/07/99
Hello friends, I want to comment an aspect that has emerged me advancing in the creation of my chess program. I see that normally, with some methods or other, any position of a chess game, is defined as the squares, this is, for example, in the square e4 is found a pawn, and I have thought that if not serious possible to make it inside out, the pawn is found in the square e4. Seems that it is the same, and in fact, the end is the same, but it is possible that this method could have additional benefits. For example, each piece would have its value updated in each position, we just have to add the value of each piece of all those which have the same color. The function of creating a possible play list would be delegated, not to a function concretely, each piece is responsible creating its own list of possible moves. Implementing it is quite different, instead of saying square[8][8] we would have to say piece[2][16] or we would create a dynamic list, when a piece is eliminated, it is not necessary to maintain it in the list. Well, all this, in a way quite abstract is what has been occurred me upon about the topic of position definition, I do not know if there is documentation in this, commenting this that I say you to try the position of pieces and not to the squares. I know, since I am a novice in this topic, i do not know if i did not considered some aspect that makes impossible this type of definition. Friends, I wait your commentaries and thanks beforehand Fernando Rodriguez CCC
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.