The error occurs in the include file, and the indicated line number suggest there is something worng with the value of the variable 'rng', which is the maximum range of a sliding move. Now the legdefs table that the Play-Test Applet generated appears to contain the value 'true' as first element on some of its lines (which is supposed to contain the range). Which is highly suspect, and should likely have been 1 instead. So it seems the GAME-code generation routine in the Play-Test Applet has a bug, which only expresses itself in the final leg of a mult-leg move.
It would help if you could post the HTML code of the Interactive Diagram this GAME code was generated from.
The error occurs in the include file, and the indicated line number suggest there is something worng with the value of the variable 'rng', which is the maximum range of a sliding move. Now the legdefs table that the Play-Test Applet generated appears to contain the value 'true' as first element on some of its lines (which is supposed to contain the range). Which is highly suspect, and should likely have been 1 instead. So it seems the GAME-code generation routine in the Play-Test Applet has a bug, which only expresses itself in the final leg of a mult-leg move.
It would help if you could post the HTML code of the Interactive Diagram this GAME code was generated from.