generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
71 lines (69 loc) · 3.12 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
<!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=" is a game played to settle disputes between two people. Thought to be a game of chance that depends on random luck similar to flipping" />
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="assets/css/style.css" />
</head>
<body>
<!--header section-->
<section>
<!--Game Heading-->
<header>
<h1 class="heading">ROCK, PAPER, SCISSORS</h1>
<!--each game play result display-->
<p class="result-display"><span id="result-display"></span></p>
</header>
</section>
<!--game area section -->
<section>
<!--object selection area -->
<div class="selection-area">
<!--user score-->
<div class="user-score">
<p>1P score</p>
<br />
<span id="user-score">0</span>
</div>
<div id="select-button">
<div><p>Click! item</p></div>
<!--credit: code institue Project Portfolio 2 Portfolio Project Scope video-->
<div>
<button aria-label="rock" data-choice="0" class="buttons" id="btn-rock">Rock</button>
<button aria-label="paper" data-choice="1" class="buttons" id="btn-paper">Paper</button>
<button aria-label="scissors" data-choice="2" class="buttons" id="btn-scissors">Scissors</button>
</div>
</div>
<div class="cpu-score">
<!--computer score-->
<p>CPU score</p>
<br />
<span id="cpu-score">0</span>
</div>
</div>
<!--gameplay area-->
<div class="game-play" id="spinner">
<!--user section with user-choice display and score-->
<!--rock paper scissors image from https://pngset.com/download-free-png-yiceg-->
<img id="player-image" src="assets/images/rps.webp" alt="rock paper scissors" />
<h2>VS</h2>
<!--computer section with computer-choice display and score https://pngset.com/download-free-png-yiceg-->
<img id="cpu-image" src="assets/images/rps.webp" alt="rock paper scissors" />
</div>
</section>
<img src="assets/images/spinner.gif" alt="Loading..." id="loading" />
<!--footer section which contains copyright-->
<section class="footer">
<footer>
<div class="rules">
<h3>Game Rules</h3>
<p>Rock breaks Scissors | Paper contain Rock | Scissors cut Paper</p>
</div>
</footer>
</section>
<script src="assets/js/script.js"></script>
</body>
</html>