A web-based implementation of the classic Simon memory game built with HTML, CSS, and JavaScript.
Play the game live: Simon Game
Simon Game is a digital version of the vintage electronic memory challenge. The objective? Repeat a growing sequence of lit-up colors — each accompanied by a distinct sound. Each round adds another color to the sequence, putting your memory to the test!
- Start by pressing any key.
- Simon flashes a sequence of colors (e.g., red → blue → yellow).
- You repeat the sequence by clicking the buttons in the correct order.
- If you get it right, Simon adds one more color to the sequence.
- Continue playing until a mistake is made; then it's Game Over.
- Press any key to restart.
Simon-Game/
├── index.html — Game interface
├── styles.css — Styling and animations
├── game.js — Core logic, patterns, sound, and animation
└── sounds/ — Audio files for each color and wrong buzzer
-
Clone the repository:
git clone https://github.com/avinashsinghpal/Simon-Game.git cd Simon-Game -
Open
index.htmlin your browser.Optionally, run a local server for better compatibility:
# Using Python (if installed) python3 -m http.server 8000 # or using Node.js http-server npx http-server
- Interactive UI: Four colored buttons that light up and play sounds when activated.
- Progressive Levels: The sequence grows longer with each successful repeat.
- Immediate Feedback: Correct clicks continue the game; a wrong click triggers a game-over sound and message.
- Restart Mechanism: Press any key to restart after a mistake.
Simon Game is a timeless brain teaser that trains short-term memory, focus, and sequential recall. Plus, building it is a fantastic learning exercise for JavaScript logic, event handling, and DOM manipulation.
Contributions, ideas, and improvements are welcome! Suggestions include:
- Adding a score display (current level or best score)
- Enhancing UI with animations or mobile-friendly responsiveness
- Adding difficulty options or time-based challenges
- Integrating restart on-screen button
To contribute:
- Fork this repository
- Create a feature branch (
git checkout -b feature-name) - Make your changes
- Submit a pull request with a brief description of your enhancements
This project is licensed under the MIT License — use freely, contribute, and share.