Describe the bug
When stalemate is reached (no legal moves, not in check), the game does not end or declare a draw.
Steps to Reproduce
- Engineer a stalemate position
- Observe the game does not declare Draw
Expected Behavior
Game should stop the clock and show "Draw by Stalemate".
Files to Investigate
engine.py / main.cpp — move generation and game-over detection logic.
Describe the bug
When stalemate is reached (no legal moves, not in check), the game does not end or declare a draw.
Steps to Reproduce
Expected Behavior
Game should stop the clock and show "Draw by Stalemate".
Files to Investigate
engine.py / main.cpp — move generation and game-over detection logic.