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

@ Gerd Degens[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Feb 20 12:29 PM UTC in reply to Gerd Degens from 11:02 AM:

OK, it is fixed. There was a statement that suppressed the promotion popup on the first move of any game.

The reason for this was that the Post-Game code is already called before any moves are done, because it also is responsible for calculating the highlighting for the next move. But it is also responsible for the promotion popup, and as a part of that it tested whether the destination of the latest move was in the promotion zone. This would lead to an error screen if that destination did not exist. So I suppressed it in move 0.

There is some unexpected behavior here in Game Courier, as the system variable mln which specifies how many moves have been played, specifies 0 both before any moves have been played, and after the first white move. So after the first white move the promotion was suppressed too.

I now solved that by testing directly whether a destination square exists, rather than relying on the move number.