Skip to content

Bug: Stalemate condition is not detected; game continues past stalemate #1992

@Nareshkumawat-star

Description

@Nareshkumawat-star

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

  1. Engineer a stalemate position
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GSSoCUnder GirlScript Summer of CodebugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions