Skip to content

Feat: Memory Game in Coginitive builder#303

Open
PrishaJain64 wants to merge 4 commits into
Canopus-Labs:mainfrom
PrishaJain64:feat/memoryGame
Open

Feat: Memory Game in Coginitive builder#303
PrishaJain64 wants to merge 4 commits into
Canopus-Labs:mainfrom
PrishaJain64:feat/memoryGame

Conversation

@PrishaJain64

Copy link
Copy Markdown

📝 Pull Request Description

Related Issue

Closes #242

Summary

Implemented a new Grid Memory game under the Cognitive Builder section to help users improve their visual memory and concentration.

Changes made:

  1. Added a new Grid Memory topic card to the Cognitive Builder page.
  2. Created a dedicated Grid Memory game page with an introduction and game instructions.

Implemented the game logic with:

  1. 8 progressive difficulty levels.
  2. Flashing pattern memorization mechanic.
  3. Score tracking.
  4. Countdown timer.
  5. Mistake counter (maximum 3 mistakes).
  6. Remaining cells counter.
  7. Progress indicator across levels.
  8. Added game over and retry/start over functionality.
  9. Integrated navigation between the Cognitive Builder page and the Grid Memory game.

Type of Change

  • ✨ New feature

How Has This Been Tested?

Describe the testing steps performed.

  1. Verified that the Grid Memory card appears on the Cognitive Builder page.
  2. Confirmed navigation to the Grid Memory game page.
  3. Tested the Start Game button.
  4. Verified that the highlighted cells flash correctly before user interaction.
  5. Tested correct cell selections and confirmed score updates.
  6. Tested incorrect selections and verified the mistake counter increments.
  7. Confirmed the game ends after 3 mistakes and displays the Game Over screen.
  8. Tested both Retry and Start Over actions.
  9. Verified timer, level progression, remaining cells counter, and progress bar update correctly during gameplay.
  10. Tested the UI to ensure it renders correctly throughout the game flow.

Screenshots

Screenshot 2026-07-01 231051 Screenshot 2026-07-01 231102 Screenshot 2026-07-01 231113 Screenshot 2026-07-01 231126

Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@PrishaJain64

Copy link
Copy Markdown
Author

hi @KaranUnique , please review the pull request and let me know if any improvements are to be made

@KaranUnique

Copy link
Copy Markdown
Contributor

Hi @PrishaJain64 you have done a great work but the changes to package-lock.json don't seem related to this PR. Could you please revert those changes

@KaranUnique

KaranUnique commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@PrishaJain64 Instead of adding the Grid Memory game under the Cognitive Skills section, I think it would be better to create a separate Cognitive Games section on sidebar. This would keep the aptitude topics and games organized separately, and it would also make it easier to add more games in the future, what do you think ?

@KaranUnique

Copy link
Copy Markdown
Contributor

@PrishaJain64 Any updates ?

@PrishaJain64

Copy link
Copy Markdown
Author

Hi, will make the needful changes tonight

@PrishaJain64

Copy link
Copy Markdown
Author
image

hi @KaranUnique , ive reverted the package-lock.json file changes and added a separate section for the game. for any updations please let me know

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.

Memory Pattern Challenge Game

2 participants