This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
391 lines (348 loc) · 28.9 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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chess</title>
</head>
<body>
<script type="text/javascript" src="./js/lib/dumbpoly.js"></script>
<section class="main-grid">
<div class="meta">
<div id="teacher-controls">
<input id="teacherMode" type="checkbox" checked="true" class="toggle-switch toggle-switch-round-flat" >
<label for="teacherMode"></label>
<button id="undo" disabled="true" title="undo">
<span class="icon">
<svg>
<use href="./css/svg/icons.svg#undo"></use>
</svg>
</span>
</button>
<button id="redo" class="icon" disabled="true" title="redo">
<span class="icon">
<svg>
<use xlink:href="./css/svg/icons.svg#redo"></use>
</svg>
</span>
</button>
</div>
<div class="moves"><span id="moves">Ход белых</span></div>
</div>
<div class="board">
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="1 1 48 48">
<!-- <title>SchachBrett</title> -->
<defs>
<rect id="zelleDunkel" x="0" y="0" height="5" width="5" />
<rect id="zelleHell" x="0" y="0" height="5" width="5" />
<g id="schahBrett">
<g>
<rect id="hg" x="1" y="1" rx="1" ry="1" width="48" height="48" class="hgFeld" />
<rect id="hg-1" x="4.5" y="4.5" width="41" height="41" class="dunkleFeld" />
<rect id="hg-1" x="5" y="5" width="40" height="40" class="grueneFeld" />
</g>
<g>
<text x="6.5" y="48" class="schachText">A</text>
<text x="11.7" y="48" class="schachText">B</text>
<text x="16.7" y="48" class="schachText">C</text>
<text x="21.9" y="48" class="schachText">D</text>
<text x="27.0" y="48" class="schachText">E</text>
<text x="32.2" y="48" class="schachText">F</text>
<text x="36.9" y="48" class="schachText">G</text>
<text x="41.9" y="48" class="schachText">H</text>
</g>
<g>
<text x="2.2" y="43.5" class="schachText">1</text>
<text x="2.2" y="38.5" class="schachText">2</text>
<text x="2.2" y="33.5" class="schachText">3</text>
<text x="2.2" y="28.5" class="schachText">4</text>
<text x="2.2" y="23.5" class="schachText">5</text>
<text x="2.2" y="18.5" class="schachText">6</text>
<text x="2.2" y="13.5" class="schachText">7</text>
<text x="2.2" y="8.5" class="schachText">8</text>
</g>
</g>
<rect id="figurenRect" width="5" height="5" x="0" y="0" style="fill:transparent; stroke-width:0; stroke:gray; cursor:pointer;" />
<path id="turmFigure" style="fill-rule:nonzero; stroke:black; stroke-width:0.15; stroke-linecap:round; stroke-linejoin:round;"
d="M 1.4179688 0.68945312 L 1.4179688 1.7890625 L 1.8632812 1.7890625 C 1.8410703 2.6366055 2.0001805 3.0927921 1.9609375 3.3789062 C 1.9303805 3.5796105 1.9090609 3.7470405 1.9042969 3.9824219 L 1.8730469 3.9824219 C 1.8279079 3.9824219 1.7929686 4.0193141 1.7929688 4.0644531 L 1.7929688 4.1269531 C 1.7024606 4.1486333 1.6327352 4.2166624 1.6269531 4.3125 L 1.6191406 4.3125 C 1.5621386 4.3125 1.515625 4.35706 1.515625 4.4140625 L 1.515625 4.6367188 C 1.515625 4.6937207 1.562138 4.7402344 1.6191406 4.7402344 L 3.3808594 4.7402344 C 3.4378614 4.7402344 3.484375 4.6937214 3.484375 4.6367188 L 3.484375 4.4140625 C 3.4843725 4.3570601 3.4378618 4.3125 3.3808594 4.3125 L 3.3730469 4.3125 C 3.3672623 4.2166624 3.2975402 4.1486331 3.2070312 4.1269531 L 3.2070312 4.0644531 C 3.2070312 4.0193141 3.1720921 3.9824219 3.1269531 3.9824219 L 3.0957031 3.9824219 C 3.0909389 3.7470402 3.0696197 3.5796104 3.0390625 3.3789062 C 2.9998205 3.0927925 3.1589296 2.6366055 3.1367188 1.7890625 L 3.5820312 1.7890625 L 3.5820312 0.68945312 L 3.3203125 0.68945312 L 3.3203125 1.2050781 C 3.3203125 1.2072941 3.3186223 1.2089844 3.3164062 1.2089844 L 3.0839844 1.2089844 C 3.0817684 1.2089844 3.0800781 1.2072941 3.0800781 1.2050781 L 3.0800781 0.68945312 L 2.6210938 0.68945312 L 2.6210938 1.2050781 C 2.6210938 1.2072941 2.6194035 1.2089844 2.6171875 1.2089844 L 2.3828125 1.2089844 C 2.3805965 1.2089844 2.3789062 1.2072941 2.3789062 1.2050781 L 2.3789062 0.68945312 L 1.9199219 0.68945312 L 1.9199219 1.2050781 C 1.9199219 1.2072941 1.9182316 1.2089844 1.9160156 1.2089844 L 1.6835938 1.2089844 C 1.6813777 1.2089844 1.6796875 1.2072941 1.6796875 1.2050781 L 1.6796875 0.68945312 L 1.4179688 0.68945312 z " />
<path id="bauerFigure" style="fill-rule:nonzero; stroke:black; stroke-width:0.15; stroke-linecap:round; stroke-linejoin:round;"
d="M 2.5 1.1992188 A 0.5 0.5 0 0 0 2 1.6992188 A 0.5 0.5 0 0 0 2.3125 2.1640625 C 2.3162895 2.2075256 2.3179732 2.2483088 2.3203125 2.2890625 A 0.69999999 0.115 0 0 0 1.8007812 2.4003906 A 0.69999999 0.115 0 0 0 2.3359375 2.5117188 C 2.3350055 3.4887928 1.8983018 3.5896878 1.9042969 3.9824219 L 1.8730469 3.9824219 C 1.827908 3.9824219 1.7929687 4.0193143 1.7929688 4.0644531 L 1.7929688 4.1269531 C 1.7024598 4.1486331 1.6327352 4.2166624 1.6269531 4.3125 L 1.6191406 4.3125 C 1.5621382 4.3125 1.515625 4.3570601 1.515625 4.4140625 L 1.515625 4.6367188 C 1.515625 4.6937211 1.5621382 4.7402344 1.6191406 4.7402344 L 3.3808594 4.7402344 C 3.4378618 4.7402344 3.484375 4.6937211 3.484375 4.6367188 L 3.484375 4.4140625 C 3.484375 4.3570601 3.4378618 4.3125 3.3808594 4.3125 L 3.3730469 4.3125 C 3.3672648 4.2166624 3.2975402 4.1486331 3.2070312 4.1269531 L 3.2070312 4.0644531 C 3.2070312 4.0193143 3.172092 3.9824219 3.1269531 3.9824219 L 3.0957031 3.9824219 C 3.1016985 3.5896878 2.6649946 3.4887928 2.6640625 2.5117188 A 0.69999999 0.115 0 0 0 3.1992188 2.4003906 A 0.69999999 0.115 0 0 0 2.6796875 2.2890625 C 2.6820632 2.2476747 2.6836279 2.2062925 2.6875 2.1621094 A 0.5 0.5 0 0 0 3 1.6992188 A 0.5 0.5 0 0 0 2.5 1.1992188 z" />
<path id="springerFigure" style="fill-rule:nonzero; stroke:black; stroke-width:0.15; stroke-linecap:round; stroke-linejoin:round;"
d="M 3.1640625,0.46484375 C 2.9723564,0.65397141 2.8403001,0.60215947 2.6210938,0.72460938 2.3093399,0.80642263 2.168257,0.87910622 1.9414062,1.0917969 1.6820034,1.253332 1.1769102,1.5314116 0.98828125,1.8535156 0.93255675,1.9464066 0.9773259,2.2317069 1.1152344,2.15625 1.0682624,2.3033661 1.3331593,2.3541444 1.3730469,2.328125 1.4129359,2.302106 1.4300438,2.242875 1.4179688,2.1914062 1.6834316,2.1927362 1.8939406,2.128689 2.0957031,2.109375 2.313633,2.120322 2.4824125,2.0961438 2.6210938,2.0019531 c 0.00565,0.808914 -0.8873417,0.7995806 -1.1191407,1.7636719 0.026335,0.1153213 0.253498,0.1768743 0.5273438,0.2167969 l -0.15625,0 c -0.045139,0 -0.080078,0.036892 -0.080078,0.082031 l 0,0.0625 C 1.7024598,4.1486331 1.6327352,4.2166624 1.6269531,4.3125 l -0.00781,0 c -0.057002,0 -0.1035156,0.04456 -0.1035156,0.1015625 l 0,0.2226563 c 0,0.057002 0.046513,0.1035156 0.1035156,0.1035156 l 1.7617188,0 c 0.057002,0 0.1035156,-0.046513 0.1035156,-0.1035156 l 0,-0.2226563 C 3.484375,4.3570601 3.4378618,4.3125 3.3808594,4.3125 l -0.00781,0 C 3.3672648,4.2166624 3.2975402,4.1486331 3.2070312,4.1269531 l 0,-0.0625 c 0,-0.045139 -0.034939,-0.082031 -0.080078,-0.082031 l -0.019531,0 C 3.3365897,3.9457684 3.5207718,3.8907842 3.5703125,3.8105469 4.2422465,2.7153358 4.2828419,1.4295381 3.0664062,0.77929688 3.1424425,0.66210186 3.1644548,0.59272875 3.1640625,0.46484375 Z" />
<path id="lauferFigure" style="fill-rule:nonzero; stroke:black; stroke-width:0.15; stroke-linecap:round; stroke-linejoin:round;"
d="M 2.4765625,0.578125 C 2.136868,0.84274491 1.7873302,1.7435966 2.3066406,1.9492188 c 0.00522,0.0532 0.00244,0.090999 0.00586,0.140625 A 0.69999999,0.115 0 0 0 1.8007812,2.1992188 0.69999999,0.115 0 0 0 2.3222656,2.3105469 C 2.343283,3.4300221 1.8911125,3.5446638 1.9042969,3.9824219 l -0.03125,0 c -0.045139,0 -0.080078,0.036892 -0.080078,0.082031 l 0,0.0625 C 1.7024598,4.1486331 1.6327352,4.2166624 1.6269531,4.3125 l -0.00781,0 c -0.057002,0 -0.1035156,0.04456 -0.1035156,0.1015625 l 0,0.2226563 c 0,0.057002 0.046513,0.1035156 0.1035156,0.1035156 l 1.7617188,0 c 0.057002,0 0.1035156,-0.046513 0.1035156,-0.1035156 l 0,-0.2226563 C 3.484375,4.3570601 3.4378618,4.3125 3.3808594,4.3125 l -0.00781,0 C 3.3672648,4.2166624 3.2975402,4.1486331 3.2070312,4.1269531 l 0,-0.0625 c 0,-0.045139 -0.034939,-0.082031 -0.080078,-0.082031 l -0.03125,0 C 3.1088837,3.5446793 2.6567367,3.4297225 2.6777344,2.3105469 A 0.69999999,0.115 0 0 0 3.1992188,2.1992188 0.69999999,0.115 0 0 0 2.6875,2.0898438 C 2.69073,2.0428658 2.68851,2.0072058 2.69336,1.9570312 3.0558949,1.8242116 2.9887806,1.3636851 2.8027344,1 L 2.6875,1.3144531 2.5703125,1.2695312 2.7226562,0.85546875 C 2.6453716,0.73950543 2.5600743,0.63109675 2.4765625,0.578125 Z" />
<path id="koenigFigure" style="fill-rule:nonzero; stroke:black; stroke-width:0.15; stroke-linecap:round; stroke-linejoin:round;"
d="M 2.48,1.23
C 2.49,1.23 2.49,1.23 2.49,1.23
2.49,1.23 2.50,1.23 2.50,1.23
2.64,1.23 2.76,1.35 2.76,1.49
2.76,1.59 2.70,1.68 2.62,1.72
2.69,1.85 2.74,2.00 2.61,2.30
2.88,1.76 3.39,1.65 3.82,1.80
4.37,1.99 4.80,2.58 4.48,3.21
4.32,3.54 3.95,3.87 3.29,4.16
3.34,4.20 3.37,4.25 3.37,4.31
3.37,4.31 3.38,4.31 3.38,4.31
3.44,4.31 3.48,4.36 3.48,4.41
3.48,4.41 3.48,4.64 3.48,4.64
3.48,4.69 3.44,4.74 3.38,4.74
3.38,4.74 1.62,4.74 1.62,4.74
1.56,4.74 1.52,4.69 1.52,4.64
1.52,4.64 1.52,4.41 1.52,4.41
1.52,4.36 1.56,4.31 1.62,4.31
1.62,4.31 1.63,4.31 1.63,4.31
1.63,4.25 1.67,4.20 1.72,4.16
1.09,3.89 0.73,3.57 0.55,3.26
0.09,2.45 0.89,1.66 1.63,1.72
1.93,1.74 2.20,1.93 2.38,2.29
2.27,2.00 2.32,1.85 2.38,1.72
2.30,1.68 2.24,1.59 2.24,1.49
2.24,1.49 2.24,1.49 2.24,1.49
2.24,1.35 2.35,1.24 2.48,1.23
2.48,1.23 2.48,1.23 2.48,1.23 Z" />
<path id="dameFigure" style="fill-rule:nonzero; stroke:black; stroke-width:0.15; stroke-linecap:round; stroke-linejoin:round;"
d="M 2.4707031 0.65625 A 0.30000001 0.30000001 0 0 0 2.4511719 0.66015625 A 0.30000001 0.30000001 0 0 0 2.4394531 0.66210938 A 0.30000001 0.30000001 0 0 0 2.421875 0.66601562 A 0.30000001 0.30000001 0 0 0 2.4121094 0.66796875 A 0.30000001 0.30000001 0 0 0 2.3925781 0.67578125 A 0.30000001 0.30000001 0 0 0 2.3828125 0.6796875 A 0.30000001 0.30000001 0 0 0 2.3144531 0.72070312 A 0.30000001 0.30000001 0 0 0 2.3066406 0.7265625 A 0.30000001 0.30000001 0 0 0 2.2929688 0.74023438 A 0.30000001 0.30000001 0 0 0 2.2714844 0.76367188 A 0.30000001 0.30000001 0 0 0 2.265625 0.76953125 A 0.30000001 0.30000001 0 0 0 2.2539062 0.78710938 A 0.30000001 0.30000001 0 0 0 2.2246094 0.83984375 A 0.30000001 0.30000001 0 0 0 2.2148438 0.8671875 A 0.30000001 0.30000001 0 0 0 2.1992188 0.95703125 A 0.30000001 0.30000001 0 0 0 2.2910156 1.1699219 A 0.30000001 0.30000001 0 0 0 2.3632812 1.2226562 A 0.30000001 0.30000001 0 0 0 2.4199219 1.2441406 A 0.30000001 0.30000001 0 0 0 2.4492188 1.2519531 C 2.3927015 1.5083834 2.327718 1.9559948 2.3066406 2.1230469 C 2.2965995 2.2026299 2.2731223 2.4104014 2.2519531 2.5996094 C 2.1540957 2.4357036 2.0459544 2.2576685 2.0039062 2.1894531 C 1.9155544 2.0461193 1.671296 1.6650877 1.5136719 1.4550781 A 0.30000001 0.30000001 0 0 0 1.6191406 1.0839844 A 0.30000001 0.30000001 0 0 0 1.2207031 0.93359375 A 0.30000001 0.30000001 0 0 0 1.0722656 1.3320312 A 0.30000001 0.30000001 0 0 0 1.4179688 1.5 C 1.4735817 1.7578764 1.6035829 2.1956144 1.6542969 2.3574219 C 1.6741289 2.4206969 1.7314988 2.5929701 1.7773438 2.734375 C 1.6549299 2.6425806 1.507701 2.5322095 1.453125 2.4921875 C 1.3173446 2.3926171 0.94770235 2.1313847 0.72265625 1.9960938 A 0.30000001 0.30000001 0 0 0 0.6796875 1.6113281 A 0.30000001 0.30000001 0 0 0 0.25390625 1.6230469 A 0.30000001 0.30000001 0 0 0 0.265625 2.0488281 A 0.30000001 0.30000001 0 0 0 0.65039062 2.0722656 C 0.79892422 2.2902813 1.08355 2.6484511 1.1914062 2.7792969 C 1.3039859 2.9158724 1.6454804 3.3177076 1.8886719 3.5703125 L 1.7871094 3.5703125 C 1.7295992 3.5703125 1.6835938 3.6182711 1.6835938 3.6757812 L 1.6835938 3.9003906 C 1.6835937 3.9579008 1.7295992 4.0039062 1.7871094 4.0039062 L 1.8515625 4.0039062 C 1.8232362 4.0166413 1.7929688 4.031277 1.7929688 4.0644531 L 1.7929688 4.1269531 C 1.7024598 4.1486331 1.6327352 4.2166624 1.6269531 4.3125 L 1.6191406 4.3125 C 1.5621382 4.3125 1.515625 4.3570601 1.515625 4.4140625 L 1.515625 4.6367188 C 1.515625 4.6937211 1.5621382 4.7402344 1.6191406 4.7402344 L 3.3808594 4.7402344 C 3.4378618 4.7402344 3.484375 4.6937211 3.484375 4.6367188 L 3.484375 4.4140625 C 3.484375 4.3570601 3.4378618 4.3125 3.3808594 4.3125 L 3.3730469 4.3125 C 3.3672648 4.2166624 3.2975402 4.1486331 3.2070312 4.1269531 L 3.2070312 4.0644531 C 3.2070312 4.031277 3.1767638 4.0166413 3.1484375 4.0039062 L 3.2128906 4.0039062 C 3.2704008 4.0039062 3.3164062 3.9579008 3.3164062 3.9003906 L 3.3164062 3.6757812 C 3.3164062 3.6182711 3.2704008 3.5703125 3.2128906 3.5703125 L 3.1152344 3.5703125 C 3.3584254 3.3177076 3.6999203 2.9158724 3.8125 2.7792969 C 3.9203564 2.6484511 4.204982 2.2902813 4.3535156 2.0722656 A 0.30000001 0.30000001 0 0 0 4.7382812 2.0488281 A 0.30000001 0.30000001 0 0 0 4.75 1.6230469 A 0.30000001 0.30000001 0 0 0 4.3242188 1.6113281 A 0.30000001 0.30000001 0 0 0 4.28125 1.9960938 C 4.0562039 2.1313848 3.6865616 2.392617 3.5507812 2.4921875 C 3.4962054 2.5322095 3.3489763 2.6425807 3.2265625 2.734375 C 3.2724073 2.5929701 3.3297776 2.4206967 3.3496094 2.3574219 C 3.4003234 2.1956144 3.5303248 1.7578763 3.5859375 1.5 A 0.30000001 0.30000001 0 0 0 3.9316406 1.3320312 A 0.30000001 0.30000001 0 0 0 3.7832031 0.93359375 A 0.30000001 0.30000001 0 0 0 3.3847656 1.0839844 A 0.30000001 0.30000001 0 0 0 3.4902344 1.4550781 C 3.3326103 1.6650877 3.088352 2.0461193 3 2.1894531 C 2.9579516 2.2576686 2.8498105 2.4357036 2.7519531 2.5996094 C 2.7307839 2.4104014 2.7073066 2.2026299 2.6972656 2.1230469 C 2.6761882 1.9559948 2.6112145 1.5083788 2.5546875 1.2519531 A 0.30000001 0.30000001 0 0 0 2.5839844 1.2441406 A 0.30000001 0.30000001 0 0 0 2.6386719 1.2226562 A 0.30000001 0.30000001 0 0 0 2.75 1.125 A 0.30000001 0.30000001 0 0 0 2.75 1.1230469 A 0.30000001 0.30000001 0 0 0 2.8046875 0.95703125 A 0.30000001 0.30000001 0 0 0 2.7109375 0.74023438 A 0.30000001 0.30000001 0 0 0 2.6875 0.72070312 A 0.30000001 0.30000001 0 0 0 2.6640625 0.703125 A 0.30000001 0.30000001 0 0 0 2.6191406 0.6796875 A 0.30000001 0.30000001 0 0 0 2.609375 0.67578125 A 0.30000001 0.30000001 0 0 0 2.5820312 0.66601562 A 0.30000001 0.30000001 0 0 0 2.5527344 0.66015625 A 0.30000001 0.30000001 0 0 0 2.5234375 0.65625 A 0.30000001 0.30000001 0 0 0 2.5039062 0.65625 A 0.30000001 0.30000001 0 0 0 2.5 0.65625 A 0.30000001 0.30000001 0 0 0 2.4804688 0.65625 A 0.30000001 0.30000001 0 0 0 2.4707031 0.65625 z " />
<g id="turmWeiss">
<use xlink:href="#turmFigure" style="fill:white;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="turmSchwarz">
<use xlink:href="#turmFigure" style="fill:black;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="bauerWeiss">
<use xlink:href="#bauerFigure" style="fill:white;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="bauerSchwarz">
<use xlink:href="#bauerFigure" style="fill:black;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="springerWeiss">
<use xlink:href="#springerFigure" style="fill:white;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="springerSchwarz">
<use xlink:href="#springerFigure" style="fill:black;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="lauferWeiss">
<use xlink:href="#lauferFigure" style="fill:white;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="lauferSchwarz">
<use xlink:href="#lauferFigure" style="fill:black;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="koenigWeiss_v">
<use xlink:href="#koenigFigure" style="fill:white;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="koenigSchwarz_v">
<use xlink:href="#koenigFigure" style="fill:black;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="dameWeiss_v">
<use xlink:href="#dameFigure" style="fill:white;"/>
<use xlink:href="#figurenRect" />
</g>
<g id="dameSchwarz_v">
<use xlink:href="#dameFigure" style="fill:black;"/>
<use xlink:href="#figurenRect" />
</g>
</defs>
<use xlink:href="#schahBrett" style="pointer-events:none;"/>
<g id="cellsOuter">
<use xlink:href="#zelleHell" x="5" y="5" id="a8" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="10" y="5" id="b8" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="15" y="5" id="c8" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="20" y="5" id="d8" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="25" y="5" id="e8" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="30" y="5" id="f8" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="35" y="5" id="g8" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="40" y="5" id="h8" class="dunkleFeld"/>
<use xlink:href="#zelleDunkel" x="5" y="10" id="a7" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="10" y="10" id="b7" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="15" y="10" id="c7" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="20" y="10" id="d7" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="25" y="10" id="e7" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="30" y="10" id="f7" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="35" y="10" id="g7" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="40" y="10" id="h7" class="helleFeld"/>
<use xlink:href="#zelleHell" x="5" y="15" id="a6" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="10" y="15" id="b6" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="15" y="15" id="c6" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="20" y="15" id="d6" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="25" y="15" id="e6" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="30" y="15" id="f6" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="35" y="15" id="g6" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="40" y="15" id="h6" class="dunkleFeld"/>
<use xlink:href="#zelleDunkel" x="5" y="20" id="a5" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="10" y="20" id="b5" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="15" y="20" id="c5" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="20" y="20" id="d5" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="25" y="20" id="e5" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="30" y="20" id="f5" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="35" y="20" id="g5" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="40" y="20" id="h5" class="helleFeld"/>
<use xlink:href="#zelleHell" x="5" y="25" id="a4" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="10" y="25" id="b4" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="15" y="25" id="c4" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="20" y="25" id="d4" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="25" y="25" id="e4" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="30" y="25" id="f4" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="35" y="25" id="g4" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="40" y="25" id="h4" class="dunkleFeld"/>
<use xlink:href="#zelleDunkel" x="5" y="30" id="a3" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="10" y="30" id="b3" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="15" y="30" id="c3" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="20" y="30" id="d3" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="25" y="30" id="e3" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="30" y="30" id="f3" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="35" y="30" id="g3" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="40" y="30" id="h3" class="helleFeld"/>
<use xlink:href="#zelleHell" x="5" y="35" id="a2" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="10" y="35" id="b2" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="15" y="35" id="c2" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="20" y="35" id="d2" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="25" y="35" id="e2" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="30" y="35" id="f2" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="35" y="35" id="g2" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="40" y="35" id="h2" class="dunkleFeld"/>
<use xlink:href="#zelleDunkel" x="5" y="40" id="a1" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="10" y="40" id="b1" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="15" y="40" id="c1" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="20" y="40" id="d1" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="25" y="40" id="e1" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="30" y="40" id="f1" class="helleFeld"/>
<use xlink:href="#zelleDunkel" x="35" y="40" id="g1" class="dunkleFeld"/>
<use xlink:href="#zelleHell" x="40" y="40" id="h1" class="helleFeld"/>
</g>
<g id="transformer" fill="transparent" style="display: none">
<circle r="8" fill="grey" transform="translate(5.5,5.5)"></circle>
<g class="black" style="visibility: hidden">
<use data-piece="-3" transform="translate(0,0)" xlink:href="#lauferSchwarz"/>
<use data-piece="-4" transform="translate(0,6)" xlink:href="#turmSchwarz"/>
<use data-piece="-7" transform="translate(6,0)" xlink:href="#springerSchwarz"/>
<use data-piece="-8" transform="translate(6,6)" xlink:href="#dameSchwarz_v"/>
</g>
<g class="white" style="visibility: visible">
<use data-piece="3" transform="translate(0,0)" xlink:href="#lauferWeiss"/>
<use data-piece="4" transform="translate(0,6)" xlink:href="#turmWeiss"/>
<use data-piece="7" transform="translate(6,0)" xlink:href="#springerWeiss"/>
<use data-piece="8" transform="translate(6,6)" xlink:href="#dameWeiss_v"/>
</g>
</g>
<g id="white">
<use data-piece="1" id="bauerWeiss1" xlink:href="#bauerWeiss" x="5" y="35"/>
<use data-piece="1" id="bauerWeiss2" xlink:href="#bauerWeiss" x="10" y="35"/>
<use data-piece="1" id="bauerWeiss3" xlink:href="#bauerWeiss" x="15" y="35"/>
<use data-piece="1" id="bauerWeiss4" xlink:href="#bauerWeiss" x="20" y="35"/>
<use data-piece="1" id="bauerWeiss5" xlink:href="#bauerWeiss" x="25" y="35"/>
<use data-piece="1" id="bauerWeiss6" xlink:href="#bauerWeiss" x="30" y="35"/>
<use data-piece="1" id="bauerWeiss7" xlink:href="#bauerWeiss" x="35" y="35"/>
<use data-piece="1" id="bauerWeiss8" xlink:href="#bauerWeiss" x="40" y="35"/>
<use data-piece="3" id="lauferWeiss1_schwarz" xlink:href="#lauferWeiss" x="15" y="40"/>
<use data-piece="3" id="lauferWeiss2_weiss" xlink:href="#lauferWeiss" x="30" y="40"/>
<use data-piece="4" id="turmWeiss1" xlink:href="#turmWeiss" x="5" y="40"/>
<use data-piece="4" id="turmWeiss2" xlink:href="#turmWeiss" x="40" y="40"/>
<use data-piece="7" id="springerWeiss1" xlink:href="#springerWeiss" x="10" y="40"/>
<use data-piece="7" id="springerWeiss2" xlink:href="#springerWeiss" x="35" y="40"/>
<use data-piece="8" id="dameWeiss" xlink:href="#dameWeiss_v" x="20" y="40"/>
<use data-piece="9" id="koenigWeiss" xlink:href="#koenigWeiss_v" x="25" y="40"/>
</g>
<g id="black">
<use data-piece="-1" id="bauerSchwarz1" xlink:href="#bauerSchwarz" x="5" y="10"/>
<use data-piece="-1" id="bauerSchwarz2" xlink:href="#bauerSchwarz" x="10" y="10"/>
<use data-piece="-1" id="bauerSchwarz3" xlink:href="#bauerSchwarz" x="15" y="10"/>
<use data-piece="-1" id="bauerSchwarz4" xlink:href="#bauerSchwarz" x="20" y="10"/>
<use data-piece="-1" id="bauerSchwarz5" xlink:href="#bauerSchwarz" x="25" y="10"/>
<use data-piece="-1" id="bauerSchwarz6" xlink:href="#bauerSchwarz" x="30" y="10"/>
<use data-piece="-1" id="bauerSchwarz7" xlink:href="#bauerSchwarz" x="35" y="10"/>
<use data-piece="-1" id="bauerSchwarz8" xlink:href="#bauerSchwarz" x="40" y="10"/>
<use data-piece="-3" id="lauferSchwarz1_weiss" xlink:href="#lauferSchwarz" x="15" y="5"/>
<use data-piece="-3" id="lauferSchwarz1_schwarz" xlink:href="#lauferSchwarz" x="30" y="5"/>
<use data-piece="-4" id="turmSchwarz1" xlink:href="#turmSchwarz" x="5" y="5"/>
<use data-piece="-4" id="turmSchwarz2" xlink:href="#turmSchwarz" x="40" y="5"/>
<use data-piece="-7" id="springerSchwarz1" xlink:href="#springerSchwarz" x="10" y="5"/>
<use data-piece="-7" id="springerSchwarz2" xlink:href="#springerSchwarz" x="35" y="5"/>
<use data-piece="-8" id="dameSchwarz" xlink:href="#dameSchwarz_v" x="20" y="5"/>
<use data-piece="-9" id="koenigSchwarz" xlink:href="#koenigSchwarz_v" x="25" y="5"/>
</g>
</svg>
</div>
<div id="historyParent" class="history">
<ul id="history"></ul>
<button id="print" class="icon" title="print">Print</button>
</div>
</section>
<div id="debug">
<label id="checkmate">Короли в безопасности</label>
<!-- <div class="tz">
<ul>
<li>
<span class="done">Pieces interactivity</span>
<ul>
<li><span class="done">Getting cells by id and pos</span></li>
<li><span class="done">Getting moves by pieces value corresponding to color</span></li>
<li><span class="done">Pieces update board when move</span></li>
<li><span class="done">Inserting appliable moves in resulting array of available moves</span></li>
<li><span class="done">Eating</span></li>
<li><span class="done">History and undoing</span></li>
<li>
<span class="done">Special Moves</span>
<ul>
<li><span class="done">Rapemove</span></li>
<li><span class="done">Rook(que)ing</span></li>
<li><span class="fixed">Moving don't predict future piece position</span></li>
<li><span class="fixed?">Queen and piece situation</span></li>
<li>
<span class="done">Piece maho-transformation </span>
<ul>
<li><span class="fixed">Check generators and if they are appliable to maho-transform</span></li>
<li><span class="done">Promises with check should suffice, generators are for different situations</span></li>
<li><span class="error">Maho-transform for move travelling</span></li>
</ul>
</li>
</ul>
</li>
<li><span class="done">King safety (!beatable)</span></li>
<li><span class="done">King protection and chek+mate</span></li>
<li><span class="fixed">King tries to hide behind himself</span></li>
<li><span class="fixed">[Teacher Mode trick whentrying to move wrong side] Fearless king (tries to beat queen protected by king)</span></li>
<li><span class="fixed">[Teacher Mode trick whentrying to move wrong side] King tries to go near checked -king</span></li>
<li><span class="fixed">[Teacher Mode trick whentrying to move wrong side] Ke6, Qc7, -Kf8, 9 tries to go near -9</span></li>
</ul>
</li>
<li><span class="done">Turns</span></li>
<li><span class="done">Moves number</span></li>
<li><span class="not-started">Win conditions</span></li>
<li><span class="not-started">Boards loading and saving</span></li>
<li><span class="not-started">Timer?</span></li>
<li>
<span class="not-started">Multipleya</span>
<ul>
<li><span class="not-started">Moves transfer</span></li>
<li><span class="not-started">DB-operated storage of closed games?</span></li>
<li><span class="not-started">DB-operated moves</span></li>
<li><span class="not-started">Timer transfer</span></li>
</ul>
</li>
</ul>
</div>
<div class="notes">
<p>x = SVG.get('bauerWeiss2') -> [use] id="bauerWeiss2" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#bauerWeiss" x="10" y="35" [/use]</p>
<p>x.transform() -> {... x:Number, y: Number}</p>
<p>x.transform({x:-10, y:-5})-> "x.transform.translate(-10,-5)"</p>
<p>JS automagically join arrays to string if they try to concatenate o-O</p>
</div> -->
</div>
<script src="./js/lib/jquery.min.js"></script>
<script src="./js/lib/svg.min.js"></script>
<script src="./js/lib/svg.draggable.min.js"></script>
<script src="./js/lib/TweenLite.min.js"></script>
<script src="./js/lib/TimelineLite.min.js"></script>
<script src="./js/lib/plugins/CSSPlugin.min.js"></script>
<script src="./js/main.js"></script>
<link rel="stylesheet" href="./css/style.css">
</body>
</html>