Computer Chess Club Archives


Search

Terms

Messages

Subject: en-passant move generation

Author: Larry Griffiths

Date: 08:35:56 02/06/99


Hi!

I am looking for suggestions on how to test for and generate en-passant
moves.  I have been thinking along these lines:

   1) Was the last move a pawn moving two squares forward.
   2) Is the From square a pawn and is it adjacent to the To square
      of the previous ply's move.
   3) If the pawn on the From square is not pinned, then
      en-passant move is valid.

Any other ideas or suggestions are appreciated!
Thanks in advance!

Larry :}



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.