[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Single Comment
<i><blockquote>
If anyone is, you will need some code trickery--a straight forward
'capture both kings' type win condition will make Zillions very
hesistant to use the Valkyrie swap move on a King--during move evaluation,
Zillions erroneously considers this to be a loss of the King, though it
treats the move correctly when actually determining if the win condition
is achieved.
</blockquote></i>
<p>
The easiest way around this is to not allow the Valkyrie to swap with the friendly King, but rather, allow the King the ability to swap with a friendly Valkyrie -- this avoids panicing Zillions.
<p>
Another approach (used in Rococo.zrf) is to use an indirect capture target piece that is on a dummy square, and have capturing the King capture that piece as well. Since the swap move wouldn't have the code to capture the off-board target piece, then again, Zillions wouldn't panic at the swap move.