-
Notifications
You must be signed in to change notification settings - Fork 0
/
10-rock-papers-scissors.html
42 lines (37 loc) · 1.11 KB
/
10-rock-papers-scissors.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
<!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="10-rock-paper-scissors.css">
</head>
<body>
<p class="title">Rock Paper Scissors</p>
<button class="move-btn" onclick="
playGame('rock');
">
<img class="move-icon" src="images/rock-emoji.png" alt="rock">
</button>
<button class="move-btn" onclick="
playGame('paper');
">
<img src="images/paper-emoji.png" class="move-icon" alt="paper">
</button>
<button class="move-btn" onclick="
playGame('scissors');
">
<img src="images/scissors-emoji.png" class="move-icon" alt="scissors"></button>
<p class="js-result result"></p>
<p class="js-move"></p>
<p class="js-score score"></p>
<button onclick="
score.wins = 0;
score.losses = 0;
score.ties = 0;
localStorage.removeItem('score')
updateScoreElement();
" class="reset-btn">Reset Score</button>
<script src="scripts/10-rock-paper-scissors.js"></script>
</body>
</html>