Skip to content

fix : remove duplicate stalemate method definition in Pygame-Chess board.py #1874

Description

@tmdeveloper007

Summary of What Needs to be Done

Remove the duplicate stalemate() method definition in games/Pygame-Chess/board.py. The file defines stalemate() twice on lines 50-51 and 52-53. Python will use the second definition (the same behavior both times), but this is a maintenance issue and will cause linters/pyright to flag duplicate method names.

Changes that Need to be Made

Remove the second (duplicate) stalemate() method definition, keeping only the first one which correctly calls self.board.is_stalemate().

Impact that it would Provide

Cleaner code, no duplicate method definitions, no linter warnings for duplicate names.

Note: please assign this issue to the tmdeveloper007 account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions