Skip to content

shanusingh01/simon-says-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Simon Says Game (JavaScript)

A fun and interactive Simon Says memory game built using HTML, CSS, and JavaScript. The game generates a growing sequence of colors, and the user must repeat the pattern correctly to level up. One mistake ends the game and displays your final score. This project is great for beginners learning DOM manipulation, game logic, and event handling.


🚀 Features

  • Generates a random color sequence each level
  • User must repeat the exact pattern
  • Flash animation for game buttons
  • Visual feedback for user clicks
  • “Game Over” screen and score display
  • Beginner-friendly JavaScript implementation

📂 Project Structure

  • index.html # Page structure
  • style.css # Game styling and colors
  • app.js # Game logic and event handling

🧠 What You Learn

  • Handling keyboard and click events
  • Managing arrays for game and user sequences
  • Using setTimeout for animations
  • DOM manipulation (text updates, styles, classes)
  • Game logic (levels, reset, checking sequence)

▶️ How to Play

  1. Open the game in your browser.
  2. Press any key to start.
  3. Watch the tile that flashes.
  4. Click the tiles in the same order.
  5. Each correct round increases the level.
  6. A wrong click ends the game and shows your score.

🖥 Example Gameplay

  • Level increases: Level 1 → Level 2 → Level 3 → ...
  • Flashing tiles guide the user.
  • One mistake shows:
    Game Over! Your Score is X

📸 Screenshot

Project Screenshot


🔧 How to Run

  1. Clone or download the repository:
    git clone https://github.com/shanusingh01/simon-says-js.git
  2. Open index.html in any browser.
  3. Play & enjoy the challenge!

📄 License

This project is free to use for learning and practice.

⭐ If you like this project, consider giving it a star!

About

A JavaScript-based Simon Says memory game where players repeat the sequence generated by the game. Uses DOM events, animations, and game logic with levels, flashing tiles, and score tracking. A great beginner project for learning interactive UI and event-driven programming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors