Author: Georg v. Zimmermann
Date: 11:57:26 01/28/00
My board is set up so that a8 is 0 and h1 is 63. I know where my king is, for example whiteKing=60. I want to fill an array[64] with the distance to the king. Result should be: e8 : 7 (squares away = king takes 7 moves to go there) h1 : 3 h8 : 7 c3 : 2 Do you have a formula to calculate this ? Thanks, Georg v. Zimmermann
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.