-
Notifications
You must be signed in to change notification settings - Fork 0
/
scissor-paper-rock.html
56 lines (56 loc) · 1.76 KB
/
scissor-paper-rock.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
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scissor Paper Rock</title>
<link rel="stylesheet" href="scissor-paper-rock.css">
</head>
<script src="scissor-paper-rock.js" defer></script>
<body>
<h1>Scissor Paper Rock Game By-Aadit Sharma</h1>
<div class="winner">
<h1></h1>
</div>
<div class="stat-container">
<div class="player1">
<h1><span class="name">Player1:</span>
<span class="status1"></span></h1>
<h4 class="win1">
Win:
<span class="w1">0</span>
</h4>
<h4 class="lose1">
Lose:
<span class="l1">0</span>
</h4>
<h4 class="draw1">
Draw:
<span class="d1">0</span>
</h4>
</div>
<div class="button-container">
<button class="scissor" onclick="scissor()">Scissor
</button>
<button class="paper" onclick="paper()">Paper
</button>
<button class="rock" onclick="rock()">Rock
</button>
</div>
<div class="player2">
<h1>Player2:
<span class="status2"></span>
</h1>
<h4 class="win2">
Win: <span class="w2">0</span>
</h4>
<h4 class="lose2">Lose:
<span class="l2">0</span>
</h4>
<h4 class="draw2">Draw:
<span class="d2">0</span>
</h4>
</div>
</div>
</body>
</html>