Skip to content

feat : simon-says : "Add difficulities" #112

Merged
venisha-kalola merged 2 commits into
commitra:mainfrom
NanditaPatil-dotcom:main
Oct 22, 2025
Merged

feat : simon-says : "Add difficulities" #112
venisha-kalola merged 2 commits into
commitra:mainfrom
NanditaPatil-dotcom:main

Conversation

@NanditaPatil-dotcom
Copy link
Copy Markdown
Contributor

@NanditaPatil-dotcom NanditaPatil-dotcom commented Oct 21, 2025

close issue #110

Summary

Added strict mode and difficulty levels to the Simon Says game as requested in the task.

Changes Made

  1. UI Changes:
  • Added "Strict Mode" checkbox toggle in the options section
  • Added difficulty selector dropdown with Easy, Medium (default), and Hard options
  1. Logic Changes:
  • Strict Mode: When enabled, any incorrect input immediately ends the game instead of replaying the sequence
  • Difficulty Levels:
    • Easy: Slower playback (500ms), longer gaps (400ms), visual cues enabled
    • Medium: Default speed (350ms), medium gaps (300ms), visual cues enabled
    • Hard: Fast playback (200ms), short gaps (200ms), visual cues disabled (sound only)
  1. Code Updates:
  • Extended state object with strictMode and difficulty properties
  • Added DOM references for new UI elements
  • Created DIFFICULTY_CONFIG object for difficulty settings
  • Modified playbackSequence() to use difficulty-based timing and visual settings
  • Updated handlePlayerInput() to implement strict mode game-over logic
  • Added event listeners for the new toggles
  • Updated TODO comments to reflect completed implementation

Checklist

  • Linked issue (if any)
  • Ran locally without console errors
  • Focused scope (kept PR small)
  • Updated docs or TODO comments if needed

Screenshots

image image

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 21, 2025

@NanditaPatil-dotcom is attempting to deploy a commit to the hrishikesh-dalal's projects Team on Vercel.

A member of the Team first needs to authorize it.

@venisha-kalola
Copy link
Copy Markdown
Contributor

add #(issue Number) in PR request

@NanditaPatil-dotcom NanditaPatil-dotcom changed the title feat : simon-says : "Add difficulities" #110 #110 feat : simon-says : "Add difficulities" Oct 22, 2025
@NanditaPatil-dotcom NanditaPatil-dotcom changed the title #110 feat : simon-says : "Add difficulities" feat : simon-says : "Add difficulities" Oct 22, 2025
@NanditaPatil-dotcom
Copy link
Copy Markdown
Contributor Author

add #(issue Number) in PR request

i have mentioned
close issue #110

@venisha-kalola venisha-kalola merged commit e5176db into commitra:main Oct 22, 2025
1 of 2 checks passed
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