generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
111 lines (95 loc) · 3.85 KB
/
index.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Website for a Rock, Paper, Scissors game">
<meta name="keywords" content="rock paper scissors, game, rock, paper, scissors">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="sweetalert2.min.css">
<title>Rock, Paper, Scissors</title>
</head>
<body>
<h1>Rock, Paper, Scissors</h1>
<!-- Game area to hold the game sections -->
<div class="game-area">
<!-- Buttons to select player option for game -->
<div class="controls-area"><h2>Choose Your Weapon</h2>
<div class="weapons">
<div class="thirds">
<button type="button" class="btn" id="rock" aria-label="rock-button">
<i class="fa-regular fa-hand-back-fist"></i>
</button>
<h3>Rock</h3>
</div>
<div class="thirds">
<button type="button" class="btn" id="paper" aria-label="paper-button">
<i class="fa-regular fa-hand"></i>
</button>
<h3>Paper</h3>
</div>
<div class="thirds">
<button type="button" class="btn" id="scissors" aria-label="scissors-button">
<i class="fa-regular fa-hand-scissors"></i>
</button>
<h3>Scissors</h3>
</div>
</div>
</div>
<!-- Area to display player choice and random computer choice -->
<div class="choices-area">
<div class="halves">
<div class="choices" id="user-choice">
<i class="fa-solid fa-question"></i>
</div>
<h3>Player Choice</h3>
</div>
<div class="halves">
<div class="choices" id="computer-choice">
<i class="fa-solid fa-question"></i>
</div>
<h3>Computer Choice</h3>
</div>
</div>
<!-- Area to show who won the game and display points accumulated -->
<div class="game-state-area">
<div class="scores">
<div class="thirds">
<div>
<span class="points" id="user-score">0</span>
</div>
<h3>Player Score</h3>
</div>
<div class="thirds">
<div id="win-state">
<i class="fa-solid fa-question"></i>
</div>
<h3>Game Result</h3>
</div>
<div class="thirds">
<div>
<span class="points" id="computer-score">0</span>
</div>
<h3>Computer Score</h3>
</div>
</div>
</div>
<!-- Area to hold buttons to reset the game and scores and show an alert informing user how to play the game -->
<div id="information">
<div>
<button type="button" class="button" id="alert" onclick="howToPlay()">How to Play</button>
</div>
<div>
<button type="reset" class="button" id="reset">Reset Game</button>
</div>
</div>
</div>
<!-- Font awesome javascript for icons -->
<script src="https://kit.fontawesome.com/0ac18b6588.js" crossorigin="anonymous"></script>
<!-- Site javscript -->
<script src="assets/js/scripts.js"></script>
<!-- Sweetalert2 javascript -->
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>