Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty perfectly legal (Bob?)

Author: Robert Hyatt

Date: 18:55:53 03/16/04

Go up one level in this thread


On March 16, 2004 at 13:29:02, Dan Honeycutt wrote:

>On March 15, 2004 at 16:33:37, David Mitchell wrote:
>
>>On March 15, 2004 at 08:47:38, Andrew Wagner wrote:
>>
>>Some intelligence has been found useful however. Crafty is one example of this.
>>When Crafty's king is in check, the move generator changes from pseudo-legal, to
>>perfectly legal move generation, only.
>
>my move generation is patterned after Crafty and Pepito (except i do legal move
>generation) so i'm pretty familiar with Crafty's move generation.  to do legal
>move generation you have to look at pins on the piece moving - which Crafty does
>with the king in check.  you also have to look at pins on the captured piece in
>the case of an enpassant capture - if removal of the captured pawn will uncover
>an attack on the king.  i may be wrong, but i don't think Crafty does that.
>
>Dan H.


Crafty has a _perfect_ legal move generator (GenerateCheckEvasions()).

When I say "perfect" I do mean +perfect+

It handles the case you mention as well as all others including en passant
issues...




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.