Comments/Ratings for a Single Item
I did not encounter the same problem. It could have been a temporary bug I introduced while streamlining how legal moves are stored just earlier today.
I could move okay with my elephant now, in the log I indicated.
However, the presentation of the finished game log (for Hannibal Chess) that I also gave still looks incorrect, it seems. For example, the names of the two players are not showing in it, and I cannot scroll down much farther at all when I get to the bottom of the diagram. [edit: I see that all finished game logs for CVs sort of look that way now - they did not always, as I was able to review the games from start to finish before]
That's now fixed. Since finished games have no legal moves left, $legalmoves
was null, and then $legalList
got assigned to null, which threw a fatal error a little further down. It now gets assigned to an empty array if $legalmoves
is null, which allows things to work correctly.
4 comments displayed
Permalink to the exact comments currently displayed.
@ Fergus (or Jean-Louis):
In the following game log I tried to move my Black elephant to f6, but the preset won't allow it for some reason:
https://www.chessvariants.com/play/pbm/play.php?game=Hannibal%2520Chess&log=panther-cvgameroom-2022-341-932&userid=panther
Also, in the following finished game, the preset does not seem to display everything beyond the diagram and the declaration of a draw by repetition:
https://www.chessvariants.com/play/pbm/play.php?game=Hannibal+Chess&log=panther-cvgameroom-2022-341-933