Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bitboards: must I rotate ?

Author: Robert Hyatt

Date: 21:23:07 05/11/02

Go up one level in this thread


On May 11, 2002 at 05:48:17, Matthias Gemuh wrote:

>
>Hi Experts,
>how much faster can I compute attacks when I rotate ? 5%? 20%? 50%?
>I don't understand rotation and hope the gain is 1% speed boost :-).
>Regards,
>Matthias.

It is more than that.  The main thing is that it eliminates the loop needed
to find where a particular diagonal, file or rank is blocked.  Generating
the attacks on a particular "ray" becomes a simple table lookup...




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.