Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Movegenerator and prevent check

Author: Francis Monkman

Date: 10:16:37 06/13/99

Go up one level in this thread



On June 13, 1999 at 12:05:27, KarinsDad wrote:


>Then, when I am generating moves, I check the pin byte of each piece for
>non-zero. If it is non-zero, then the piece is pinned and has limited movement,
>based on the value of the pin byte.
>
>However, the way I do it seems like it may take a slightly shorter amount of
>time on average since not every piece or move is checked anyway either (just a
>few near the king), so the cutoff would have to be one or two moves for this
>system to be slower. On average, I think it is somewhat faster (but I have not
>done any tests to prove it).
>
>KarinsDad :)

I used a similar pin scheme in my 68000-assembler code. What I don't get is when
you
say "just a few near the king" -- surely a king on say, h1, can have a piece on
say, b7
pinned against it by a queen/bishop on a8?

All best
Francis



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.