Check out Grant Acedrex, our featured variant for April, 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

Forward Chess ZIP file. Download these files to play Forward Chess with Zillions of Games![All Comments] [Add Comment or Rating]
Anonymous wrote on Thu, Feb 5, 2004 12:26 AM UTC:
Thanks, Peter. It finds and defends against these wins much better now.
The
macro I used, wtih comments:


(define King-forward (
$1
(verify not-friend?)
(if (in-zone? promotion-zone) 
	(verify not-attacked?) ; to prevent moving into check
	(if (in-zone? promotion-zone a1)
		(capture White-throne) ; dummy position with a white King
	else
		(capture Black-throne) ; dummy position with a Black King
	)
	add
else
   	(add-create) ; another macro to make the move and create a piece
; if appropriate. Your normal move goes here.
)
))