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

Metamachy. Large game with a variety of regular fairy pieces.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Wed, Aug 9, 2017 01:34 PM UTC:

The code for the King's skip move looks like this:

  (define skip
( 
(verify never-moved?) 
(verify not-attacked?)
	   $1 
	(verify not-attacked?)
	   $2
		(verify empty?)
	        (set-attribute never-moved? false)
	   ;     (set-attribute never-skipped? false)
		 add
	 ))

The only condition on the first step of this move is that the space is not attacked. A space is considered attacked in Zillions-of-Games only when an enemy piece could legally move there.