Check out Atomic Chess, our featured variant for November, 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

About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
🕸💡📝Fergus Duniho wrote on Tue, Jul 9 01:04 AM UTC in reply to Daniel Zacharias from Mon Jul 8 10:43 PM:

Now when I try to move in any game other than secret intelligence chess it says You may not move one of your opponent's pieces or similar

I added some new code today for which I neglected to include $nopreview as one of the conjuncts of the condition, figuring that it wasn't necessary to do that. But apparently it was necessary, for adding it allowed making a move to work properly. The code is supposed to change $submit from "Send" to "Preview" when $moves is empty, and it looks like it was doing that when a player was confirming a move. So now it looks like this:

if ($nopreview && empty($moves) && ($submit == "Send"))
    $submit = "Preview";

This was in conjunction with using the Test rendering method to test changes to movepiece.js that would prevent moves started by clicking on an empty space when $nopreview is true, as allowing this type of move could cause moves to be accidentally made, and when $nopreview is true, they can't be undone without editing the log and the database.

There is now the issue of whether any logs were damaged by this bug and are in need of repair. [EDIT: As far as I can tell, this bug stopped moves from being recorded, and the recent logs all seem fine. But if I'm wrong, let me know.]