Author: Tord Romstad
Date: 14:00:36 04/14/04
Go up one level in this thread
On April 14, 2004 at 16:52:36, Gerd Isenberg wrote: >i really prefere even more inlines for abstraction... >Isn't there a cheaper tricks to do isCommonA1H8Diagonal, etc. with 0x88? I am not sufficiently fluent in bitboards to understand quite what your code is doing, but assuming that the function determines whether it is possible to get from square x to square y on an empty board by sliding in a direction parallel to the a1-h8 diagonal, this is indeed a very cheap operation with 0x88 (or other 16-file board representations). You just subtract x from y and look up the answer in a 256-byte lookup table. Tord
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.