-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (117 loc) · 3.59 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
112
113
114
115
116
117
118
119
120
<!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" />
<title>Rock-Paper-Scissors</title>
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<div class="board">
<div class="title">
<h1>Rock Paper Scissors</h1>
</div>
<div class="score-board">
<div class="user__score-board">
<div id="user-label" class="badge">PLAYER</div>
<span id="user-score">0</span>
</div>
<div class="comp__score-board">
<div id="computer-label" class="badge">COMPUTER</div>
<span id="computer-score">0</span>
</div>
<div class="draw__board-score">
<p id="draw-label" class="info-badge">
Draw: <span id="draw-score">0</span>
</p>
</div>
<div class="round__board-score">
<p id="round-label" class="info-badge">
Round: <span id="round-score">0</span>
</p>
</div>
</div>
</div>
<div class="result">
<p>Make your movement.</p>
</div>
<div class="game-wrapper">
<div class="player">
<div class="user-icon"><i class="fa-solid fa-user"></i></div>
<div class="choices">
<div class="choice" id="r">
<img src="images/rock.png" alt="rock" />
</div>
<div class="choice" id="p">
<img src="images/paper.png" alt="paper" />
</div>
<div class="choice" id="s">
<img src="images/scissors.png" alt="scissors" />
</div>
</div>
</div>
<div class="vs">VS.</div>
<div class="machine">
<div class="machine-icon"><i class="fa-solid fa-desktop"></i></div>
<div class="machine-choice">
<img src="images/question-mark.png" alt="" />
</div>
</div>
</div>
<div class="modal">
<p>And the winner is...</p>
<button class="play-again">Play again</button>
<button class="play-later">Play later</button>
<div class="later-modal">
<div class="later-close-btn">×</div>
<p></p>
</div>
</div>
<div class="rules">
<button class="rules-button">Rules</button>
<div class="rules-game-modal">
<div class="rules-close-btn">×</div>
<div class="rules-game">
<h2>How does it work?</h2>
<p>
➀ The game will take place in a round of 10 moves.<br />
➁ The user will start with their first move followed by the
computer.<br />
➂ In each play there will be a win, a loss or a draw,
recorded on the scoreboard.<br />
➃ After the round of 10 moves, the user will be able to play
again restarting the scoreboard, or play later.
</p>
<h2>What are the rules of RPS?</h2>
<p>
The outcome of the game is determined by 3 simple rules:<br />
✔ Rock will beat scissors but will be beaten by paper.<br />
✔ Paper will beat rock but will be beaten by scissors.<br />
✔ Scissors will beat paper but will be beaten by rock.
</p>
<div class="rules-game-image">
<img
src="images/game-rules.jpg"
alt="rock, paper, scissors rules"
/>
</div>
</div>
</div>
</div>
<footer>
<p class="credits">
© 2022 Guaci Gutiérrez •
<a href="https://guacig.github.io/" target="_blank">Portfolio</a>
</p>
</footer>
<script src="main.js"></script>
</body>
</html>