mnm-sys / tezdhar

A fast and unbeatable chess engine written in C
GNU General Public License v3.0
3 stars 1 forks source link

Detect stalemate caused by user move #4

Open mnm-sys opened 2 years ago

mnm-sys commented 2 years ago

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.