Check out Atomic Chess, our featured variant for November, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

A Wizard for GAME-Code Generation. A tutorial on using the Play-Test Applet for automating Game Courier presets.[All Comments] [Add Comment or Rating]
Daniel Zacharias wrote on Sat, Jul 16, 2022 10:58 PM UTC in reply to H. G. Muller from 10:53 AM:

Thank you. At first I thought I could just override GameEnd and have it check for check before mate, but then it was announcing Check! every move.

This e.p. trick for detecting moving out of check after the fact unfortunately does not work in general

If I understand this correctly, it should work as long as the game doesn't include hoppers. It does seem reasonable to assume that King cannot normally make special moves to escape check.

Is there a way I could add en passant to a leaping move?

Edit I found another solution that seems to work—setting checked to 1 before GameEnd both post game sections.