Author: Jeff Anderson
Date: 23:29:41 12/28/98
I've begun working on a chess program, and am in the very early stages. I have come up with an idea, or a shortcut, but I fear it may have some negative consequences. In my numerical representation of the chess board, instead of having for example 1 for a pawn, 2 for a knight, 3 for a bishop 4 for rook, 5 for queen, 6 for king, -1 for black pawn and so on, could I not make the numerical representation of the piece its value? For example instead of 2 for a knight, the knight could be 300, and a black knight could be -300. The white bishop might be 320 and the black king -5000 and so on. Would this not kill two birds with one stone, and save me the trouble, of assigning the piece values another place? It would make the evaluation much easier, because all I would have to do is add up the total value of each element in the board array (not counting positional considerations). Jeff
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.