Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: check detection

Author: Steffen Jakob

Date: 02:55:03 08/23/99

Go up one level in this thread


On August 20, 1999 at 22:59:51, Peter McKenzie wrote:

>You can optimise this alot by taking into account the previous move.  For
>example, if the previous move wasn't a knight move (or a promotion) then clearly
>you can't be in check by a knight so you don't need to scan for knight checks.

Don't forget underpromotions to knights! :-)

>For linear pieces you basically only need to scan in the direction of the from
>and to squares of the last moved piece.

Greetings,
Steffen.



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.