Author: Uri Blass
Date: 12:49:58 10/28/02
Go up one level in this thread
On October 28, 2002 at 15:38:59, Gerd Isenberg wrote: >On October 28, 2002 at 15:35:02, Uri Blass wrote: > <snipped> >>Today I remember it in an array. >>squares in the board are numbers 0-63 >> >>a1=0 >>b1=1... >>h1=7 >>a2=8... >>a8=56... >>h8=63 >>direction is array 64*64 of int >> >>direction[i][i]=-9; >>direction[i][j]=-2 if i and j are knight direction knight direction does not mean direction but distance of 1 in knight moves. in other cases 0-3 means rook directon when 4-7 means bishop direction. There is no special information for king direction but I use 64*8 array in order to generate king moves and the same for knights. 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.