forked from kunjgit/GameZone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (31 loc) · 1.01 KB
/
index.html
File metadata and controls
35 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Two Player Dice Game</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<h1>🎲 Two Player Dice Game</h1>
<div class="game-container">
<div class="player" id="player1">
<h2>Player 1</h2>
<p>Total: <span id="score1">0</span></p>
<p>Current: <span id="current1">0</span></p>
</div>
<div class="dice-container">
<img src="https://raw.githubusercontent.com/ksuvii21/assets/main/dice-1.png" alt="Dice" id="dice"/>
<button id="roll">Roll Dice 🎲</button>
<button id="hold">Hold 🖐️</button>
<button id="reset">Reset 🔄</button>
</div>
<div class="player" id="player2">
<h2>Player 2</h2>
<p>Total: <span id="score2">0</span></p>
<p>Current: <span id="current2">0</span></p>
</div>
</div>
<script src="script.js"></script>
</body>
</html>