Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: TO: James Long (En-passant)

Author: James Long

Date: 16:07:21 02/07/99

Go up one level in this thread


On February 07, 1999 at 16:38:44, Larry Griffiths wrote:

>James,
>
>I finally got the en-passant code in and working (I hope).  I ended up
>creating "ep squares" for boths sides as a black pawn could move to the
>"ep square" when an adjacent black pawn moved forward two squares.
>I am going to work on fixing "draw by repetition" next.
>
>Thanks for your feedback!   :-)
>
>Larry


Glad to help.

I'm not real clear on why you need two "ep squares," though.
Just set the ep square whenever a pawn moves two spaces,
and set it to "invalid" on any other move.

Say black moves "e5", setting the ep square to e6.
White moves Nf3, setting the ep square to invalid.
Now it's imossible for black to move to the ep square...

What you're doing may be fine, just a suggestion... :-)

James




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.