[ 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 Interactive diagrams. Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating] 💡📝H. G. Muller wrote on Tue, Dec 28, 2021 01:05 PM UTC in reply to Aurelian Florea from 12:52 PM:OK, so the routine is in fact called. Try the following. Below the script add a place where we can print debug output: <p id="debug"></p> Then inside the BadZone routine add a line document.getElementById("debug").innerHTML += 'BadZone(' + toFile + ',' + toRank + ',' + pieceType + ',' + color + ',' + fromFile + ',' + toFile + ') imi =' + imi + '<br>'; Then we can get an impression of what goes wrong.
OK, so the routine is in fact called. Try the following. Below the script add a place where we can print debug output:
<p id="debug"></p>
Then inside the BadZone routine add a line
document.getElementById("debug").innerHTML += 'BadZone(' + toFile + ',' + toRank + ',' + pieceType + ',' + color + ',' + fromFile + ',' + toFile + ') imi =' + imi + '<br>';
Then we can get an impression of what goes wrong.