Computer Chess Club Archives


Search

Terms

Messages

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

Author: Larry Griffiths

Date: 19:41:10 02/07/99

Go up one level in this thread


On February 07, 1999 at 19:07:21, James Long wrote:

>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


James,

You are correct about not needing two ep squares except that I
make moves for Black and White at the root ply when displaying the
pieces on my chessboard.  I show things like pinned pieces, unmoveable
pieces, pieces under attack etc.  No moves are made, just generation
of the moves for both sides.  I will continue to use two ep squares for
now.  Thanks for your reply! {:-)

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.