The chess engine should be able to detect that the user move has caused the opposite king to be stalemated i.e. the king is not in check and no other moves are possible for the opposite player. In such a scenario, the chess engine should update the board status and show the result in UI.
The chess engine should be able to detect that the user move has caused the opposite king to be stalemated i.e. the king is not in check and no other moves are possible for the opposite player. In such a scenario, the chess engine should update the board status and show the result in UI.