Skip to content

Latest commit

ย 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Simon Game

๐Ÿง  Test your memory. Follow the pattern. Beat your high score!

A fun and interactive Simon Game built using HTML, Core CSS, and JavaScript. The game challenges players to remember and repeat an increasingly complex sequence of flashing buttons.

โœจ Designed with an animated dynamic background, interactive button effects, and action-based sound effects to create an engaging gaming experience.


๐Ÿš€ Live Demo

๐Ÿ”— Play Simon Game


๐Ÿ“ธ Project Preview

desktop view

Simon Game Desktop Preview

mobile view

Simon Game Mobile Preview


โœจ Features

๐ŸŽฏ Classic Simon Gameplay Follow the generated sequence and repeat it correctly.

๐ŸŒˆ Animated Dynamic Background A visually engaging animated background creates a lively gaming atmosphere.

๐Ÿ’ก Interactive Flashing Buttons Buttons provide visual feedback with smooth flash-up animations whenever an action occurs.

๐Ÿ”Š Action-Based Sound Effects Different sounds enhance the gaming experience:

  • ๐ŸŽฎ Button click sound
  • ๐Ÿš€ Level-up sound
  • ๐Ÿ’ฅ Game-over sound
  • ๐ŸŽต Game-start sound

๐Ÿ“ˆ Progressive Difficulty The sequence becomes longer as the player successfully completes each level.

๐Ÿ† Score & Level Tracking Keep track of your current progress and try to achieve a higher score.

โšก Instant Visual Feedback Animations and sounds make every player action immediately noticeable.

๐Ÿ“ฑ Responsive Design The game interface adapts to different screen sizes and devices.


๐Ÿ› ๏ธ Technologies Used

HTML5 CSS3 JavaScript

๐Ÿ”ง Core Technologies

Technology Purpose
๐Ÿงฑ HTML5 Game structure and UI elements
๐ŸŽจ Core CSS Styling, animations, responsiveness and visual effects
โšก JavaScript Game logic, sequence generation, user interaction and sound control

๐ŸŽฎ How to Play

1๏ธโƒฃ Start the Game

Press any key to start the game.

2๏ธโƒฃ Watch the Pattern ๐Ÿ‘€

The game will flash a button and play its corresponding sound.

3๏ธโƒฃ Repeat the Pattern ๐Ÿง 

Click the buttons in the exact same order.

4๏ธโƒฃ Level Up ๐Ÿš€

If your sequence is correct, the game moves to the next level and adds another button to the pattern.

5๏ธโƒฃ Game Over ๐Ÿ’ฅ

Make a mistake and the game ends.

Your score and game-over message will be displayed.

๐Ÿ† Challenge

Try to remember the longest sequence possible and beat your previous score!


โš™๏ธ Game Logic

The game is powered by JavaScript and follows a simple sequence-based system:

Start Game
    โ†“
Generate Random Button
    โ†“
Flash Button + Play Sound
    โ†“
Player Repeats Sequence
    โ†“
       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
       โ”‚ Correct Input โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ†“
          Increase Level
               โ†“
      Add New Button
               โ†“
        Repeat Pattern
               
       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
       โ”‚ Wrong Input   โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ†“
           Game Over
               โ†“
        Display Score

๐Ÿ“‚ Project Structure

Simon-Game/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ index.html
โ”œโ”€โ”€ ๐ŸŽจ style.css
โ”œโ”€โ”€ โšก app.js
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ assets/
    โ”œโ”€โ”€ desktop.jpg
    โ”œโ”€โ”€ mobile.jpg
|
โ”œโ”€โ”€ ๐Ÿ“ sounds/
โ”‚   โ”œโ”€โ”€ ๐Ÿ”Š gamestart.mp3
โ”‚   โ”œโ”€โ”€ ๐Ÿ”Š gameover.mp3
โ”‚   โ”œโ”€โ”€ ๐Ÿ”Š levelup.mp3
โ”‚   โ””โ”€โ”€ ๐Ÿ”Š buttonselect.mp3
โ”‚
โ””โ”€โ”€ ๐Ÿ“„ README.md

๐Ÿ–ฅ๏ธ Run Locally

1๏ธโƒฃ Clone the repository

git clone https://github.com/saif_08/simonSay-game.git

2๏ธโƒฃ Open the project

cd simon-game

3๏ธโƒฃ Run the game

Open index.html directly in your browser.

Or use VS Code Live Server for a better development experience.


๐Ÿง  Key Concepts Practiced

Through this project, the following web-development concepts were practiced:

  • DOM Manipulation
  • JavaScript Event Handling
  • Arrays & Randomization
  • Game State Management
  • Conditional Logic
  • Functions
  • Timers & Delays
  • Audio Handling
  • CSS Animations
  • CSS Transitions
  • Responsive Design
  • User Interaction
  • Dynamic UI Updates

๐Ÿ”ฎ Future Improvements

Some features that could be added in the future:

  • ๐Ÿ† Persistent High Score
  • ๐ŸŽš๏ธ Multiple Difficulty Modes
  • โฑ๏ธ Speed-based challenges
  • ๐ŸŒ™ Theme selector

๐Ÿ“Œ Project Goals

The main goal of this project was to combine JavaScript game logic with modern interactive UI effects to create a fun browser-based gaming experience.

๐Ÿ’ก Build. Play. Improve. Repeat.


๐Ÿ‘จโ€๐Ÿ’ป Author

MD SAIF

GitHub LinkedIn


โญ Show Your Support

If you enjoyed this project, don't forget to show your support! โค๏ธ

โญ Star the repository ย ย  ๐Ÿด Fork the project ย ย  ๐Ÿ› Report an issue ย ย  ๐Ÿ’ก Suggest an improvement

Every bit of support is appreciated! โค๏ธ


About

A fun and interactive Simon Game built using HTML, Core CSS, and JavaScript

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages