Author: Robert Hyatt
Date: 18:35:36 06/26/00
Go up one level in this thread
On June 25, 2000 at 23:13:38, Larry Griffiths wrote: >I have a question Bob, > >How do you handle the shift amounts for your left 45 and right 45 tables so that >you can and them with 0x00000000000000ff to seperate out the diagonal? > >I am thinking of creating two tables called L45shiftright[square] and >R45shiftright[square]. > >Larry. Exactly. But don't forget to shift right, cast to an int, then and with 255. And I used 255 for all cases. If the diagonal isn't that long, I just initialize the unused cases correctly so that I get the right value for just the diagonal bits that are of interest, without caring what the extra bits have in them...
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.