-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
222 lines (212 loc) · 7.27 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!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" />
</head>
<body>
<div class="main">
<div class="heading">
<h1>Rock - Paper - Scissors</h1>
</div>
<form action="#" class="form-div">
<label>Player 1: Computer</label>
<div>
<label for="player-name">Player 2:</label>
<input
class="player-name"
id="player-name"
type="text"
placeholder="Enter your name"
required
/>
<button class="start-btn main-btn">Start</button>
</div>
</form>
<!-- <ion-icon name="trophy-sharp"></ion-icon> -->
<!-- <span><ion-icon name="laptop-outline"></ion-icon></span> -->
<div class="game-div hide">
<div class="players">
<div class="player1 player">
<span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="100"
height="80"
fill="#000000"
viewBox="0 0 256 256"
>
<rect width="256" height="256" fill="none"></rect>
<rect
x="32"
y="48"
width="192"
height="144"
rx="16"
transform="translate(256 240) rotate(180)"
fill="none"
stroke="#e2e0e0"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="10"
></rect>
<line
x1="160"
y1="224"
x2="96"
y2="224"
fill="none"
stroke="#e2e0e0"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="10"
></line>
<line
x1="32"
y1="152"
x2="224"
y2="152"
fill="none"
stroke="#e2e0e0"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="10"
></line>
<line
x1="128"
y1="192"
x2="128"
y2="224"
fill="none"
stroke="#e2e0e0"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="10"
></line>
</svg>
<!-- <svg
class="icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="w-1 h-1"
>
<path
fill-rule="evenodd"
d="M2 4.25A2.25 2.25 0 014.25 2h11.5A2.25 2.25 0 0118 4.25v8.5A2.25 2.25 0 0115.75 15h-3.105a3.501 3.501 0 001.1 1.677A.75.75 0 0113.26 18H6.74a.75.75 0 01-.484-1.323A3.501 3.501 0 007.355 15H4.25A2.25 2.25 0 012 12.75v-8.5zm1.5 0a.75.75 0 01.75-.75h11.5a.75.75 0 01.75.75v7.5a.75.75 0 01-.75.75H4.25a.75.75 0 01-.75-.75v-7.5z"
clip-rule="evenodd"
/>
</svg> -->
</span>
<p class="game-player-name">Computer</p>
<p class="game-score-div">
<span class="game-score game-score1">0</span>
</p>
<div class="choice-img1">
<!-- <img src="images/rock.png" style="width: 25%" /> -->
</div>
</div>
<div class="player2 player">
<span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="100"
height="80"
fill="#000000"
viewBox="0 0 256 256"
>
<rect width="256" height="256" fill="none"></rect>
<circle
cx="128"
cy="96"
r="64"
fill="none"
stroke="#e2e0e0"
stroke-miterlimit="10"
stroke-width="10"
></circle>
<path
d="M31,216a112,112,0,0,1,194,0"
fill="none"
stroke="#e2e0e0"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="10"
></path>
</svg>
<!-- <svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="55"
stroke="cfffColor"
class="w-6 h-6"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"
/>
</svg> -->
</span>
<p class="game-player-name player-name2">Player 2</p>
<p class="game-score-div">
<span class="game-score game-score2">0</span>
</p>
<!-- <p>Rock/paper/scissors</p> -->
<div class="choice-img2">
<!-- <img src="images/scissor2.png" style="width: 25%" /> -->
</div>
</div>
<div class="players-result-div">
<p class="players-result">Who wins?</p>
</div>
</div>
<div class="game-buttons-div">
<button class="rock-btn btn" value="rock">
<img class="game-btn rock-btn" src="images/rock.png" alt="Rock" />
</button>
<button class="paper-btn btn" value="paper">
<img
class="game-btn paper-btn"
src="images/paper.png"
alt="Paper"
/>
</button>
<button class="scissors-btn btn" value="scissor">
<img
class="game-btn scissors-btn"
src="images/scissors.png"
alt="Scissors"
/>
</button>
</div>
</div>
<div class="play-again-div hide">
<button class="play-again main-btn">Play again</button>
</div>
<ul class="info">
<li>
<span>★</span>
<span class="info-1">Type your name in the input box.</span>
</li>
<li>
<span>★</span>
<span class="info-2">Then click on "START" to play.</span>
</li>
</ul>
</div>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"
></script>
<script defer src="script.js"></script>
</body>
</html>