Skip to content

Move features to individual controller files #25#149

Open
KartikeyaNainkhwal wants to merge 3 commits intoidna001:masterfrom
KartikeyaNainkhwal:separate-files-kartikeya-contribution
Open

Move features to individual controller files #25#149
KartikeyaNainkhwal wants to merge 3 commits intoidna001:masterfrom
KartikeyaNainkhwal:separate-files-kartikeya-contribution

Conversation

@KartikeyaNainkhwal
Copy link
Copy Markdown
Contributor

✨ Major code reorganization for better maintainability:

📁 NEW CONTROLLERS CREATED:
• GameController.js - Handles game logic, cards, turns, matching • TimerController.js - Manages time tracking and elapsed time • AudioController.js - Centralizes all sound effects management • ScoreController.js - Handles scoring, high scores, game completion • HintController.js - Manages hint system and cooldowns • ErrorController.js - Provides error handling and logging • index.js - Clean exports for easy importing

🔧 IMPROVEMENTS:
• Reduced App.js complexity from 323+ lines
• Separated concerns for better code organization
• Enhanced maintainability and readability
• Easier testing and debugging
• Prepared for future feature additions
• Following React best practices

🎮 FUNCTIONALITY:
• All existing features work exactly the same
• No breaking changes for users
• Improved developer experience
• Ready for Hacktoberfest contributions

This refactoring makes the codebase more modular and easier for contributors to understand and extend.

✨ Major code reorganization for better maintainability:

📁 NEW CONTROLLERS CREATED:
• GameController.js - Handles game logic, cards, turns, matching
• TimerController.js - Manages time tracking and elapsed time
• AudioController.js - Centralizes all sound effects management
• ScoreController.js - Handles scoring, high scores, game completion
• HintController.js - Manages hint system and cooldowns
• ErrorController.js - Provides error handling and logging
• index.js - Clean exports for easy importing

🔧 IMPROVEMENTS:
• Reduced App.js complexity from 323+ lines
• Separated concerns for better code organization
• Enhanced maintainability and readability
• Easier testing and debugging
• Prepared for future feature additions
• Following React best practices

🎮 FUNCTIONALITY:
• All existing features work exactly the same
• No breaking changes for users
• Improved developer experience
• Ready for Hacktoberfest contributions

This refactoring makes the codebase more modular and easier
for contributors to understand and extend.
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 9, 2025

@KartikeyaNainkhwal is attempting to deploy a commit to the idna001's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
aa-memory Ready Ready Preview Comment Oct 10, 2025 5:51am

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Oct 9, 2025

@KartikeyaNainkhwal
Copy link
Copy Markdown
Contributor Author

Issue resolved: Conflict resolution complete

Copy link
Copy Markdown
Owner

@idna001 idna001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, sadly I found several bugs in the Preview.

  1. Hint Feature: Cards flip before the Countdown ends
  2. Sound effect of flipping cards ends in loop
  3. New Sonarcloud issues found

I also wanted to see commiting your action here... But you did it already manual.
In another PR you can the that the action is not committing correct. It should use the users of the PR creations permissions. Here the example: https://github.com/idna001/Couple-Memory/actions/runs/18399726759/job/52426205771?pr=150

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