Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: quick bitboard question

Author: Steffan Westcott

Date: 17:17:33 08/26/05

Go up one level in this thread


On August 26, 2005 at 15:04:55, Robert Hyatt wrote:

>I have four choices for which square bit 0 represents (four logical choices,
>anyway, I guess one could number bits randomly should they choose).
>
>A1 = 0
>H1 = 0
>A8 = 0
>H8 = 0
>
>For those of you using bitboards, which did you use?  Since it doesn't matter to
>me at all, since I am having to rewrite a bunch of stuff to make this work, I
>thought I would try to match the most common layout which will make the programs
>more compatible if we share any ideas.
>
>I am leaning toward H1 = 0, H2 = 8, ..., H8 = 56 and A8 = 63, but I've not made
>any decision yet...

I'm using the numbering scheme you are suggesting, I find it helps
visualisation, as the left/right-ness is preserved.

However, when answering CCC posts, I change the numbering to match the scheme
adopted by the original poster :)

Cheers,
Steffan



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.