oldxavier / chessploring

A self-study attempt to beat myself
0 stars 0 forks source link

King hitting bug #10

Closed oldxavier closed 5 years ago

oldxavier commented 5 years ago

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?

oldxavier commented 5 years ago

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.