Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: annoying en passant x-ray

Author: Gerd Isenberg

Date: 15:50:07 11/30/03

Go up one level in this thread


<snip>
>>The rule I would follow is:  "You cannot play a move which puts your own king
>>into check."  I hope that was built into all chess engines.
>>
>>Bob D.
>
>Sure, but if you want to implement legal move generation,
>to avoid making/unmaking invalid moves, you need some other conditions.
>Ep is a bit annoying, all others are easier to implement.
>Pinned piece determination is required, but also fine for other purposes.
>
>Gerd

There are always these pathological positions.
This one to get the idea of legal move generation ;-)

[D] 8/5p2/pP2k2p/P3q3/1p2Q3/rR2K1Rr/3B3P/2b3n1 w - -




This page took 0.02 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.