Skip to content

Commit db80565

Browse files
author
abhimishra01
committed
Initial commit
0 parents  commit db80565

15 files changed

+1617
-0
lines changed

Diff for: .gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# simon-game
2+
3+
[Edit in StackBlitz next generation editor ⚡️](https://stackblitz.com/~/github.com/abhimishra01/simon-game)

Diff for: assets/blue.mp3

1.23 KB
Binary file not shown.

Diff for: assets/gameover.mp3

63.7 KB
Binary file not shown.

Diff for: assets/green.mp3

1.28 KB
Binary file not shown.

Diff for: assets/red.mp3

1.63 KB
Binary file not shown.

Diff for: assets/yellow.mp3

1.02 KB
Binary file not shown.

Diff for: index.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Simon Game</title>
7+
<link rel="stylesheet" href="./src/style.css" />
8+
</head>
9+
<body>
10+
<h1>Level <span id="scoreDisplay">0</span></h1>
11+
<div class="game-container">
12+
<div class="tile green" data-tile="green"></div>
13+
<div class="tile red" data-tile="red"></div>
14+
<div class="tile yellow" data-tile="yellow"></div>
15+
<div class="tile blue" data-tile="blue"></div>
16+
</div>
17+
<div class="controls">
18+
<button id="startBtn">Start Game</button>
19+
</div>
20+
21+
<!-- Game Over Modal -->
22+
<div class="modal" id="gameOverModal">
23+
<div class="modal-content">
24+
<h2>Game Over!</h2>
25+
<p>Level reached: <span id="finalScore">0</span></p>
26+
<button id="playAgainBtn">Play Again</button>
27+
</div>
28+
</div>
29+
<script src="./src/main.js"></script>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)