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.
Summary of What Needs to be Done
Remove the duplicate
stalemate()method definition ingames/Pygame-Chess/board.py. The file definesstalemate()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 callsself.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
tmdeveloper007account.