Closed kreibaum closed 1 year ago
This always happens when a pawn unites with the enemy king on the home row. Here is a minimal reproduction: https://dev.pacoplay.com/replay/305
The previous examples all had chains as last move, but this is not required.
This does not happen if the pawn-king union happens on any other row: https://dev.pacoplay.com/replay/306
The issue was, that "half moves" would only be considered finished when the controlling player changes. This doesn't properly happen when there is a promotion at the end of the move. Now ending the game is also added.
There is still the related issue of a non-finished half move not showing up in the replay, but I'll not worry about that issue with this ticket.
The replay in https://pacoplay.com/game/6472 is missing the last move.