Skip to content

Added invalid move feedback and game over detection to 2048 game#521

Merged
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
artic2702:fix-2048-gameover
May 21, 2026
Merged

Added invalid move feedback and game over detection to 2048 game#521
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
artic2702:fix-2048-gameover

Conversation

@artic2702
Copy link
Copy Markdown

Description

Implemented improvements for the 2048 game by adding:

  • Invalid move feedback message
  • Proper Game Over detection
  • Restart message cleanup
  • Improved gameplay responsiveness

Changes Made

  • Added game status message display
  • Added checkGameOver() logic
  • Updated makeMove() to handle invalid moves
  • Cleared messages on restart

Closes #458

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

@artic2702 is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92 steam-bell-92 merged commit 3c5d6c6 into steam-bell-92:main May 21, 2026
1 of 2 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 [Feature]: Improve repeated move handling and add Game Over detection in 2048 game

2 participants