You are on the backup site for Chessvariants.com. Any posts, moves, or other changes you make here will not be permanent, because the pages and database from the main site will be backed up here every midnight EST. Additionally, things may not be working right, because this site is also a testbed for newer system software. So, if you are not here to test, develop, or merely read this site, you may want to change .org to .com in the navigation bar and go to the main site.



The Chess Variant Pages




[ 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

Forward Chess ZIP file. Download these files to play Forward Chess with Zillions of Games![All Comments] [Add Comment or Rating]
Michael Nelson wrote on 2004-02-05 UTC
Larry's suggestion also improves play and the code is elegant. I'm going
to
do some testing and see which approach seems to do better.

I have a more elegant macro for Peter's method which will allow the
final
move to be made:

(define King-win (
(verify (in-zone? promotion-zone))
(if (in-zone? promotion-zone a1)
	White-throne ; dummy position with a White King
else
	Black-throne ; dummy position with a Black King
)
add
))