-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (48 loc) · 1.81 KB
/
index.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<script src="./script.js" defer></script>
<title>Rock-Paper-Scissors Game</title>
</head>
<body>
<div id="wrapper">
<h1><span id="rock">Rock</span><br><span id="paper">Paper</span><br><span id="scissors">Scissors</span></h1>
<p>The winner will be the one that reaches 5 points. To begin the game, please choose an option on the panel 👦You.</p>
<div id="gamers-panels">
<div class="gamer-panel">
<div class="avatar-info">
<h4>👦You</h4>
<div id="selection">Selection: <span id="player-selection">none</span></div>
</div>
<div class="choices">
<button id="rock-button">✊Rock</button>
<button id="paper-button">✋Paper</button>
<button id="scissors-button">✌Scissors</button>
</div>
</div>
<div class="gamer-panel">
<div class="avatar-info">
<h4>🤖Computer</h4>
<div id="selection">Selection: <span id="computer-selection">none</span></div>
</div>
</div>
</div>
<div id="score-screen">
<h2>Score</h2>
<div id="score-information">
<div id="player-score">
👦: <span id="player-points">0</span>
</div>
<div id="computer-score">
🤖: <span id="computer-points">0</span>
</div>
</div>
<p id="result-information">Last result: <span id="result-text">Round results will be displayed here</span></p>
</div>
</div>
</body>
</html>