timwoelfle/PlainChess

Bug: It is possible to put yourself into checkmate

Skeletonxf opened this issue · 0 comments

This should be self explanatory

https://i.imgur.com/d8qbGLe.png

White moved the horse away from shielding the king from the opponent rook and thus put White into check. The game failed to prevent this move being made and did not show the 'check' flashing at any point. Black is unable to actually take the White King with its rook. Black then informs me they did actually move, trying to take the King with their rook and now sees this

http://i.imgur.com/QmUvGEt.png

My (White) view of the board remains the same and I cannot see the update, still seeing it as black's turn even after reloading the page in a new tab.