Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Help on bitboards

Author: Alessandro Damiani

Date: 12:04:57 12/25/03

Go up one level in this thread


On December 25, 2003 at 08:48:19, Tom Likens wrote:

>On December 25, 2003 at 04:08:57, Alessandro Damiani wrote:
>
>>>I guess someone also might choose to have a8=0, b8=1, and h1=63, because then
>>>when you output the board you just go from 0 to 63 and it outputs the squares
>>>correctly.
>>
>>That's the way I do it.
>>
>>>I don't think there is any "right" way to do this. Just choose whatever makes
>>>the most sense to you so that things like rotated bitboards will be easier for
>>>you to understand.
>>
>>I never used rotated bitboards, but rotated indices. These are simpler.
>>
>>Alessandro
>
>Hello Alessandro,
>
>I also map the board as you do (a8=LSB ... h1=MSB) which gives us a common
>frame of reference.  How do rotated indices differ from rotated bitboards?
>

The difference between rotated bitboards and rotated indices is the invariant of
the search.
Rotated bitboards: in addition to the normal board there are rotated boards
Rotated indices:   in addition to the normal board there are indices for each
direction to access the attack tables

To get more details just browse the CCC archive or download the file from my
homepage: http://freeweb.econophone.ch/fortress

Alessandro




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.