Check out Janggi (Korean Chess), our featured variant for December, 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

ZRF question[Subject Thread] [Add Response]
Peter Aronson wrote on Wed, Nov 5, 2003 06:23 PM UTC:
Another approach, if you are playing a game with checkmate, is to give Pawns a move that allows them to capture the opposing King, but only if they are in the required zone. Something like: <p> <i><pre> (define Pawn-Win ( (verify (in-zone? king-capture)) a1 (while (not-position? OFF) (if (and (piece? King) enemy?) add OFF else next ) ) )) </pre></i> <p> Of course the win gets reported as a checkmate, which may or may not be good. (Above code not tested.)