Bug in the preset for Wildebeest Chess:
http://play.chessvariants.org/pbm/play.php?game%3DWildebeest+Chess%26settings%3DWildebeest+Chess+with+rules
Hi, I have written a preset for Wildebeest Chess some months ago. When I tested it (arount spring/summer of 2009) it seemed to work, but now it is no longer working. Before the first move it complained that the function definition of some function is wrong: the message was 'Function def requires more arguments than it has placeholders for.'. I fixed this by removing the function definitions, doing the calculation directly where the functions were previously called.
The function definition was:
def isKINGc == #2 K and == #0 f1 and match #1 a1 b1 c1 d1 h1 i1 j1 k1;
and it was called in post-move 1:
if fn isKINGc origin dest moved:
...
Now there is still another bug: when the rook castles onto the origin square of the king (entered as a rook's move, e.g. a1-f1) then the king dissapears.
I am sure that I had checked this after writing the preset and it worked, before Jeremy Good made the preset the official one (see the comments at http://www.chessvariants.com/large.dir/wildebeest.html).
-----------------------------------------------
Edit: I have found the bug and fixed it. I just forgot a ':' after the condition of an if-statement...