https://github.com/rayeesrather99/simon-game
Simon is a memory game where players have to remember and repeat a sequence of colors.
https://github.com/rayeesrather99/simon-game
css html javascript jquery simon-game-clone
Last synced: about 2 months ago
JSON representation
Simon is a memory game where players have to remember and repeat a sequence of colors.
- Host: GitHub
- URL: https://github.com/rayeesrather99/simon-game
- Owner: rayeesrather99
- License: mit
- Created: 2023-07-16T13:33:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-16T13:55:22.000Z (almost 3 years ago)
- Last Synced: 2025-01-31T06:37:18.711Z (over 1 year ago)
- Topics: css, html, javascript, jquery, simon-game-clone
- Language: JavaScript
- Homepage: https://rayeesrather99.github.io/Simon-Game/
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simon-Game
This is a simple implementation of the Simon game using HTML, CSS, and JavaScript. Simon is a memory game where players have to remember and repeat a sequence of colors.
# Game-Mechanics
The game starts when the user presses any key on the keyboard.
A random color is generated and added to the gamePattern array.
The corresponding button for the generated color flashes briefly and plays a sound.
The player then clicks on the buttons to repeat the sequence.
If the player clicks the correct sequence, the game progresses to the next level.
If the player clicks the wrong sequence, the game ends, and the player can restart by pressing any key.
The game keeps track of the current level.
# Variables
buttonColours: An array of colors available in the game (red, blue, green, yellow).
gamePattern: An array that stores the randomly generated sequence of colors.
userClickedPattern: An array that stores the sequence of colors clicked by the player.
started: A boolean variable to check if the game has started.
level: A variable to keep track of the current level.
# Creator
https://www.rayees.co