Author: Leen Ammeraal
Date: 00:25:26 08/16/02
Go up one level in this thread
After setting up my array udr[64][64] based on your latest array UDR_Dist[64], I use these two functions, and they work fine: inline bool sameDiagonal(int ij1, int ij2) { return (udr[ij1][ij2] & 0x1E) == 0x10; } inline bool sameRankOrFile(int ij1, int ij2) { return (udr[ij1][ij2] & 0x1E) == 0; } Thanks again, Leen
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.