-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrps.html
More file actions
37 lines (30 loc) · 994 Bytes
/
rps.html
File metadata and controls
37 lines (30 loc) · 994 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="rps.css" />
<title>Rock Paper Scissors Game</title>
</head>
<body>
<header>
<h1>Rock Paper Scissors</h1>
</header>
<div class="score-board">
<div id="user-label" class="badge">Manjeet</div>
<div id="computer-label" class="badge">Computer</div>
<span id="user-score">0</span>:<span id="computer-score">0</span>
</div>
<div class="result">
<p>Paper covers rock. You win!</p>
</div>
<div class="choices">
<div class="choice" id="r"><img src="rock.png" alt="" /></div>
<div class="choice" id="p"><img src="paper.png" alt="" /></div>
<div class="choice" id="s"><img src="scissor.png" alt="" /></div>
</div>
<p id="action-message">Make it yours buddy!!</p>
<script src="rps.js"></script>
</body>
</html>