Skip to content

Commit 11da584

Browse files
Kanavpreet-Singhsumn2u
authored andcommitted
added simonsaysGAME
1 parent e248116 commit 11da584

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

assets/simon-says-preview.png

15.3 KB
Loading

en/beginner-projects/simon-says.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# 🎮 Simon Says Game
2+
3+
![Simon Says Preview](../../assets/simon-says-preview.PNG)
4+
5+
## Description
6+
7+
A memory game where players repeat sequences of colored buttons. Each round adds a new color to the sequence, and the player must remember and repeat it correctly to advance levels.
8+
9+
## Features
10+
11+
- Start button to begin the game
12+
- Colored buttons (Green, Red, Yellow, Blue) that flash
13+
- Adds a new color each level
14+
- Level tracking and Game Over message
15+
16+
## Concepts Practiced
17+
18+
- DOM manipulation
19+
- Event listeners
20+
- Async functions and Promises
21+
- Game logic and sequence handling
22+
- CSS animations and visual feedback
23+
24+
## Bonus Challenge
25+
26+
- Show the **score** after the game is over (score = number of levels completed).
27+
- Add **sound effects** for each button click.
28+
- Add **glowing animation** for each button to make the game more interactive.
29+
30+
## Live Demo
31+
32+
<div align="center">
33+
<iframe src="https://codesandbox.io/p/sandbox/frosty-nobel-849xrz"
34+
style="width:100%; height: 500px; border:0; border-radius: 4px; overflow:hidden;"
35+
title="simon-says-game"
36+
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
37+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
38+
></iframe>
39+
</div>

0 commit comments

Comments
 (0)