-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrps.html
43 lines (39 loc) · 1.3 KB
/
rps.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
<html lang="en">
<head>
<title>Rock Paper Scissor Game</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="rps/rps.css">
</head>
<body>
<div class="container">
<div class="scores">
<p>Computer :
<span id="computer_score">0</span>
</p>
<p>
You :
<span id="user_score">0</span>
</p>
</div>
<div class="weapons">
<button onclick="checker('rock')">
<i class="far fa-hand-rock"></i>
</button>
<button onclick="checker('paper')">
<i class="far fa-hand-paper"></i>
</button>
<button onclick="checker('scissor')">
<i class="far fa-hand-scissors"></i>
</button>
</div>
<div class="details">
<p id="user_choice"></p>
<p id="comp_choice"></p>
<p id="result"></p>
</div>
</div>
<!--linking the javascript file-->
<script src="rps.js"></script>
</body>