After a full simulated match, I checked the moves taken. After multiple occasions of correctly detecting check and moving accordingly, there was a white bishop check that wasn't detected. Black made a mode that didn't block that check, and in the next turn, white took the king.
Then, which might turn out to be a separate issue, the simulation went on for a few moves before ending with white winning (even though there was no king on the board and black did have available moves).
Bug hard to reproduce, but will attempt a full simulation in debug mode, breaking maybe if king is being hit?
Couldn't reproduce error, but could be a king position tracking error that has now been fixed. Will close this now - if the issue comes up again, I'll re-open it.
After a full simulated match, I checked the moves taken. After multiple occasions of correctly detecting check and moving accordingly, there was a white bishop check that wasn't detected. Black made a mode that didn't block that check, and in the next turn, white took the king.
Then, which might turn out to be a separate issue, the simulation went on for a few moves before ending with white winning (even though there was no king on the board and black did have available moves).
Bug hard to reproduce, but will attempt a full simulation in debug mode, breaking maybe if king is being hit?