Skip to content

Fixed chess with FIDE rules#4

Merged
RoflikBEST merged 8 commits intoBestProjectTeam:mainfrom
roor48:fix-chess
May 3, 2026
Merged

Fixed chess with FIDE rules#4
RoflikBEST merged 8 commits intoBestProjectTeam:mainfrom
roor48:fix-chess

Conversation

@roor48
Copy link
Copy Markdown
Contributor

@roor48 roor48 commented May 2, 2026

Implemented a fully functional chess game in the fun games menu with comprehensive rule support including all standard FIDE chess rules and draw conditions.

Changes

  • Check detection: Kings cannot move into attacked squares
  • Forced check resolution: When in check, only moves that resolve check are legal
  • Checkmate: Game ends when king is in check with no legal moves
  • Stalemate: Game ends in draw when no legal moves exist without being in check

Special Moves

  • Castling
  • En Passant

Draw Conditions

  • Fifty-move rule
  • Threefold repetition

Attack Detection & Validation

  • Skewer detection: Squares behind pieces on attack lines are also marked as attacked
  • Pin detection: Pieces pinned to king cannot move (enforced via check validation)
  • Move validation: All moves are validated to not leave king in check

@roor48 roor48 changed the title Fix chess with FIDE rules Fixed chess with FIDE rules May 2, 2026
@RoflikBEST RoflikBEST merged commit 3642090 into BestProjectTeam:main May 3, 2026
@RoflikBEST
Copy link
Copy Markdown
Contributor

Thank you for your request, we've been wanting to update chess for a long time, you helped us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants