Check out Symmetric Chess, our featured variant for March, 2024.


[ 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

Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sun, Aug 23, 2020 05:48 AM UTC in reply to A. M. DeWitt from 01:17 AM:

I have no idea how this is happening

This is happening because the JavaScript for highlighting was changed, to do the highlighting based on the full move string rather than on arrays of [origin, destination] pairs. The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method. And when you write 16e as destination in a move, this also ends in 6e. So when it loops through all board spaces to see if these occur in a move that starts with the selected piece, it finds these spurious matches.

This can only happen with chess-style coordinates if the file name would be multiple letters. So it did slip through the testing.

Just wait until Fergus fixes it.