-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrock-paper-scissor.html
More file actions
40 lines (29 loc) · 1.15 KB
/
rock-paper-scissor.html
File metadata and controls
40 lines (29 loc) · 1.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style/07-rock-paper-scissors.css">
<title> Rock Paper Scissors </title>
</head>
<body>
<p class="title"> Rock Paper Scissorss </p>
<button onclick="playGame('Rock'); " class="move-button"> <img src="image/rock-emoji.png" class="move-img"> </button>
<button onclick="playGame('Paper');" class="move-button"> <img src="image/paper-emoji.png" class="move-img"> </button>
<button onclick=" playGame('Scissors');" class="move-button"> <img src="image/scissors-emoji.png" class="move-img"> </button>
<p class="js-result result" ></p>
<p class="js-moves"></p>
<p class="js-score score"></p>
<button onclick="
score.win = 0;
score.Losses = 0;
score.tie = 0;
localStorage.removeItem('score');
showScore(score);
" class="reset-score-btn"> Reset Score </button>
<button class="auto-play-btn" onclick="
autoPlay();
"> Auto Play </button>
<script src="scripts/07-rock-paper-scissors.js"></script>
</body>
</html>