-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrps.html
66 lines (54 loc) · 1.92 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!--
Rock, Paper, Scissors Game
Original Code from:
https://codepen.io/bradtraversy/pen/wLgPzr
Code adopted for standalone by:
Greg Jewett, http://geocaching.ejewett.com/
Acknowledgements:
Original code: https://codepen.io/bradtraversy/pen/wLgPzr
Hand Graphics: Font Awesome (https://fontawesome.com/)
Requirements:
rps.html (this file)
rps.css (CSS Stylesheet)
rps.js (JavaScript interaction code)
images/congratulations.gif (Animated gif)
Access to URL: https://kit.fontawesome.com/3da1a747b2.js (to display hand icons)
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rock * Paper * Scissors</title>
<link rel="stylesheet" media="screen" href="rps.css" />
<script src="https://kit.fontawesome.com/3da1a747b2.js"></script>
</head>
<body>
<div class="centered-content">
<img src="images/rps.png" height="250"><br/>
Play Rock, Paper, Scissors versus the computer. <br/>
Be the first to win TEN times, and you will be given the Stage 1 coordinates for this multicache!
<hr style="width: 500px; margin: auto;">
Click the hand symbols to choose your "weapon" and the battle results will appear.<br>
</div>
<div class="container">
<header class="header">
<button id="restart" class="restart-btn">Restart Game</button>
<div id="score" class="score">
<p>Player: 0</p>
<p>Computer: 0</p>
</div>
</header>
<h2>Make Your Selection</h2>
<div class="choices">
<i id="rock" class="choice fas fa-hand-rock fa-10x"></i>
<i id="paper" class="choice fas fa-hand-paper fa-10x"></i>
<i id="scissors" class="choice fas fa-hand-scissors fa-10x"></i>
</div>
</div>
<!-- Modal -->
<div class="modal">
<div id="result" class="modal-content"></div>
</div>
<script src="rps.js"></script>
</body>
</html>