-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
305 lines (291 loc) · 15.3 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html>
<head>
<title>Chess GrandMaster</title>
<link rel="stylesheet" href="chessCSS.css">
<link rel="stylesheet" href="bootstrap.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="chessJS.js"></script>
<!-- <style>
*{
border: 1px solid red;
}
</style> -->
</head>
<body>
<!-- GUI and settings -->
<div class="setting-container row flex-wrap pt-5 px-3 m-0">
<!-- selection of game modes -->
<div class="selection-box col-12 m-0" id="game-mode">
<div class="row">
<div class="col-5 p-0">
<p>SELECT GAME MODE</p>
</div>
<div class="col-7">
<div class="selection row justify-content-between">
<div class="game-mode col-6">TWO PLAYER</div>
<div class="game-mode col-6">VS COMPUTER</div>
</div>
</div>
</div>
</div>
<!-- selection of piece color -->
<div class="selection-box col-12 m-0" id="piece-color">
<div class="row">
<div class="col-5 p-0">
<p>SELECT COLOR</p>
</div>
<div class="col-7">
<div class="selection row justify-content-around">
<div class="col-12">
<img src="images/blackPiece.jpg" class="piece-color mr-4" alt="">
<img src="images/whitePiece.jpg" class="piece-color" alt="">
</div>
<!-- <div class="piece-color text-white col-3">♙</div> -->
</div>
</div>
</div>
</div>
<!-- selection of game duration -->
<div class="selection-box col-12 m-0 p-0" id="timer">
<div class="row p-0 m-0">
<div class="col-5 p-0">
<p>SELECT GAME DURATION</p>
</div>
<div class="col-7">
<div class="row">
<div class="time-box col-3">
<div class="p-1">01:00</div>
</div>
<div class="time-box col-3">
<div class="p-1">05:00</div>
</div>
<div class="time-box col-3">
<div class="p-1">10:00</div>
</div>
<div class="time-box col-3">
<div class="p-1">30:00</div>
</div>
</div>
</div>
</div>
</div>
<!-- enter player name -->
<div class="selection-box col-12 p-0 m-0" id="player-name">
<div class="row p-0 m-0">
<div class="col-5 p-0">
<P>PLAYER NAME</P>
</div>
<div class="col-7">
<input id="playerb-name" class="p-1 w-100" type="text" placeholder="Enter your name">
</div>
</div>
</div>
<div class="col-12 py-3 text-center">
<button type="submit" class="text-center px-3" id="play-btn">PLAY</button>
</div>
</div>
<!------------------------------------ main game container --------------------------------------->
<div class="game-container row vh-100 m-0">
<!-- opponent dead chess pieces -->
<div class="dead-pieces col-sm-12 col-lg-3 bg-dark vh-lg-100">
<div class="dead-pieces-container row align-items-start vh-lg-100" id="whiteDead">
<div class="col-lg-12 col-12 p-0">
<div class="row m-0 p-0">
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
</div>
</div>
<!-------- player information --------->
<div class="col-lg-12 col-12 p-0">
<div class="player-status playera row m-0 p-0">
<div class="col-lg-9 col-sm-9 m-0 p-0">
<div class="row m-0 p-0">
<figure class="col-4 p-2 m-0 image-container">
<img src="images/avatar1.jpg" class="w-100" alt="">
</figure>
<div class="col-8 player-info my-sm-3 px-3">
<div class="username overflow-hidden text-white">AI BotX10</div>
<div class="score text-white">(0)</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-3 m-0 p-2">
<div class="timer-container">
<div class="timer text-white text-center" id="whiteTimer"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!----------- chess board-------------->
<div id="chess-board" class="col-sm-12 col-lg-6 vh-lg-100 m-0 p-0 bg-dark">
<div class="row p-0 m-0">
<!--first row -->
<div class="col-12 h-100">
<div class="row">
<div class="square col-16 "></div>
<div class="square col-16 "></div>
<div class="square col-16 "></div>
<div class="square col-16 "></div>
<div class="square col-16 "></div>
<div class="square col-16 "></div>
<div class="square col-16 "></div>
<div class="square col-16 "></div>
</div>
</div>
<!--second row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
<!--third row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
<!--fourth row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
<!--fifth row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
<!--sixth row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
<!--seventh row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
<!--eighth row -->
<div class="col-12">
<div class="row">
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
<div class="square col-16"></div>
</div>
</div>
</div>
</div>
<!-- player dead chess pieces -->
<div class="dead-pieces col-sm-12 col-lg-3 bg-dark vh-lg-100">
<div class="dead-pieces-container row align-items-end vh-lg-100" id="blackDead">
<div class="col-lg-12 col-sm-12 p-0">
<div class="row m-0 p-0">
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
<div class="dead-pieces-square col-lg-4 m-0 col-16"></div>
</div>
</div>
<!-------- player information --------->
<div class="col-lg-12 col-sm-12 p-0">
<div class="player-status playerb row m-0 p-0">
<div class="col-lg-9 col-sm-9 m-0 p-0">
<div class="row m-0 p-0">
<figure class="col-4 p-2 m-0 image-container">
<img src="images/avatar2.jpg" class="w-100" alt="">
</figure>
<div class="col-8 player-info my-sm-3 px-3">
<div class="username overflow-hidden text-white"></div>
<div class="score text-white">0</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-3 m-0 p-2">
<div class="timer-container">
<div class="timer text-white text-center" id="blackTimer"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>