Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A question about move generators for bishops and rooks

Author: Dann Corbit

Date: 15:23:26 04/06/04

Go up one level in this thread


On April 06, 2004 at 18:15:40, Vaclav Visnadjek wrote:

I do something very similar to what you do.

I provide a bitmap of all the pieces on the board and also the bishop location.

I have precalculated the 127 (max) possible bit patterns for each column or
diagonal given the other bits sitting on that row.

So the moves are simply returned given the piece location, and the bitboard of
the other chessmen.  (Row and column or both diagonals are two lookups but the
data is returned simultaneously.)

You can also find pins in this way, and return that data as well (and a few
other things besides).



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.