-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
189 lines (178 loc) · 5.42 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
<!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>Tic Tac Toe Game</title>
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="./files/tabIcon.png" type="image/png" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<script
src="https://kit.fontawesome.com/7213b39e3a.js"
crossorigin="anonymous"
></script>
</head>
<body>
<div class="select-box">
<div class="header">
<header>Tic Tac Toe</header>
<div class="setting">
<i class="sound homeSound fa-solid"></i>
</div>
</div>
<div class="content">
<div class="title">Select game mode?</div>
<div class="options">
<button class="mode singlePlay active">Play vs bot</button>
<button class="mode multiPlay">Play vs friend</button>
<button class="mode onlinePlay">Play Online</button>
</div>
<div class="options">
<div>
<p class="small gray">Board</p>
<select class="board">
<option value="3">3x3 (classic)</option>
<option value="5">5x5 - Align 4 to win</option>
</select>
</div>
<div class="singlePlayDashboard active">
<div>
<p class="small gray">Level</p>
<select class="level">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
<div>
<p class="small gray">Player</p>
<select class="player">
<option value="X">X-Player</option>
<option value="O">O-Player</option>
</select>
</div>
</div>
</div>
<small class="helperText active"
>Hint: Select X if you wanna go first
</small>
<div class="options active">
<button class="start">Start</button>
</div>
<div class="credit">
Created By
<a href="https://hashmat-noorani.vercel.app/" target="_blank"
>Hashmat Wani</a
>
</div>
</div>
</div>
<!-- playboard section -->
<div class="play-board">
<div class="header">
<header>Tic Tac Toe</header>
<div class="setting">
<i class="sound playBoardSound fa-solid"></i>
<button class="quit">Quit</button>
</div>
</div>
<div class="details">
<div class="players">
<span class="xTurn active">X's Turn</span>
<span class="oTurn">O's Turn</span>
</div>
</div>
<div class="play-area three active">
<section>
<span id="0"></span>
<span id="1"></span>
<span id="2"></span>
</section>
<section>
<span id="3"></span>
<span id="4"></span>
<span id="5"></span>
</section>
<section>
<span id="6"></span>
<span id="7"></span>
<span id="8"></span>
</section>
</div>
<div class="play-area five">
<section>
<span class="_0"></span>
<span class="_1"></span>
<span class="_2"></span>
<span class="_3"></span>
<span class="_4"></span>
</section>
<section>
<span class="_5"></span>
<span class="_6"></span>
<span class="_7"></span>
<span class="_8"></span>
<span class="_9"></span>
</section>
<section>
<span class="_10"></span>
<span class="_11"></span>
<span class="_12"></span>
<span class="_13"></span>
<span class="_14"></span>
</section>
<section>
<span class="_15"></span>
<span class="_16"></span>
<span class="_17"></span>
<span class="_18"></span>
<span class="_19"></span>
</section>
<section>
<span class="_20"></span>
<span class="_21"></span>
<span class="_22"></span>
<span class="_23"></span>
<span class="_24"></span>
</section>
</div>
<div class="footer">
<div class="showLevel small">
Level:<i><strong> easy</strong></i>
</div>
<div class="showPlayerSign small">
<div class="you">
You:<i><strong> X</strong></i>
</div>
<div class="opponent">
Opponent:<i><strong> O</strong></i>
</div>
</div>
</div>
</div>
<!-- result box -->
<div class="result-box">
<div class="won-text"></div>
<div>
<select class="player active">
<option value="" selected hidden>who plays first?</option>
<option value="X">I start first</option>
<option value="O">Opponent start first</option>
</select>
</div>
<div class="btn">
<button class="replay">Replay</button>
<button class="quit">Quit</button>
</div>
</div>
<div class="coming">
<div>Coming soon</div>
<span class="material-icons close">close</span>
</div>
<script src="script.js"></script>
</body>
</html>