-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (37 loc) · 1.16 KB
/
Copy pathindex.html
File metadata and controls
46 lines (37 loc) · 1.16 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
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Rock Paper Scissors</h1>
<div class="container">
<div class="choices">
<button id="Rock" class="choice">✊ Rock</button>
<button id="Paper" class="choice">✋ Paper</button>
<button id="Scissors" class="choice">✌️ Scissors</button>
</div>
</div>
<!-- Result + score area -->
<div id="result">
<!-- User side -->
<div class="player-block">
<div class="score-box" id="userScoreBox">0</div>
<p id="userChoice">You: </p>
</div>
<!-- Computer side -->
<div class="player-block">
<div class="score-box" id="computerScoreBox">0</div>
<p id="computerChoice">Chitti: </p>
</div>
</div>
<!-- Outcome text -->
<p id="outcome"></p>
<!-- Reset button -->
<button id="resetBtn">Reset Game</button>
<script src="app.js"></script>
</body>
</html>