Pocket-Monkey(tm) Discussion Forum

[Home] | [Problems and Solutions] | En Passant capture prevented[Forum Rules] [Login]

En Passant capture prevented

Thread #1438 - Messages: 4   (some may be hidden) **This thread is closed** 
 En Passant capture prevented Message #14362    Replies: 1
posted by tjrm (Jim) on 03/14 at 17:07
TJ,

In game #915484, my opponent has just advance a pawn two squares (one past my pawn) to place my king in check, a case that would permit a capture en passant according to chess rules. I would in fact do so, as not doing so gives me an inferior position. Note that this capture (en passant) would also escape check. However, the game logic is preventing the move -- stating that I cannot move into check -- when in fact the move releases the check. What, if anything, can be done?

Jim
 
 Re: En Passant capture prevented Message #14364    Replies: 1
posted by T.J. (T.J. Crowder) on 03/15 at 12:37
Hi Jim,

Yes, that's one of two (three?) known bugs in the Chess game around en passant stuff. They'll all be fixed (along with another Chess bug, castling across check sometimes) when we upgrade the games later this year to the new stuff I'm working on. Since I'm (mostly) replacing it, I'm only fixing easy-to-fix bugs in the existing game implementation...

In a tourney game, I'd probably go in and hand-edit the game to fix the problem. Since that one isn't, I'm hoping you don't mind if I don't spend that time?

Thanks,
--
T.J. Crowder
First Primate
Pocket-Monkey.com
   
 Re: En Passant capture prevented Message #14365    Replies: 1
posted by tjrm (Jim) on 03/15 at 13:43
TJ,

Fine! Thank you for the reply. My opponent and I will call it a draw; we've already started a new one.

Jim
     
 Re: En Passant capture prevented Message #14367    Replies: 0
posted by T.J. (T.J. Crowder) on 03/17 at 10:48
Thanks Jim!

-- T.J. :-)

Forum software by Crowder Software
Pocket-Monkey and the Pocket-Monkey logo are trademarks of T.J. Crowder and Jock Murphy. All other trademarks are the property of their respective owners.