-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchess-board.html
106 lines (91 loc) · 4.71 KB
/
chess-board.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A chess board</title>
<link rel="stylesheet" type="text/css" href="chess-board.css">
</head>
<body>
<div class="chess-board">
<div class="square white" id="a8"><div class="piece black rook">♜</div></div>
<div class="square black" id="b8"><div class="piece black knight">♞</div></div>
<div class="square white" id="c8"><div class="piece black bishop">♝</div></div>
<div class="square black" id="d8"><div class="piece black queen">♛</div></div>
<div class="square white" id="e8"><div class="piece black king">♚</div></div>
<div class="square black" id="f8"><div class="piece black bishop">♝</div></div>
<div class="square white" id="g8"><div class="piece black knight">♞</div></div>
<div class="square black" id="h8"><div class="piece black rook">♜</div></div>
<div class="square black" id="a7"><div class="piece black pawn">♟</div></div>
<div class="square white" id="b7"><div class="piece black pawn">♟</div></div>
<div class="square black" id="c7"><div class="piece black pawn">♟</div></div>
<div class="square white" id="d7"><div class="piece black pawn">♟</div></div>
<div class="square black" id="e7"><div class="piece black pawn">♟</div></div>
<div class="square white" id="f7"><div class="piece black pawn">♟</div></div>
<div class="square black" id="g7"><div class="piece black pawn">♟</div></div>
<div class="square white" id="h7"><div class="piece black pawn">♟</div></div>
<div class="square white" id="a6"></div>
<div class="square black" id="b6"></div>
<div class="square white" id="c6"></div>
<div class="square black" id="d6"></div>
<div class="square white" id="e6"></div>
<div class="square black" id="f6"></div>
<div class="square white" id="g6"></div>
<div class="square black" id="h6"></div>
<div class="square black" id="a5"></div>
<div class="square white" id="b5"></div>
<div class="square black" id="c5"></div>
<div class="square white" id="d5"></div>
<div class="square black" id="e5"></div>
<div class="square white" id="f5"></div>
<div class="square black" id="g5"></div>
<div class="square white" id="h5"></div>
<div class="square white" id="a4"></div>
<div class="square black" id="b4"></div>
<div class="square white" id="c4"></div>
<div class="square black" id="d4"></div>
<div class="square white" id="e4"></div>
<div class="square black" id="f4"></div>
<div class="square white" id="g4"></div>
<div class="square black" id="h4"></div>
<div class="square black" id="a3"></div>
<div class="square white" id="b3"></div>
<div class="square black" id="c3"></div>
<div class="square white" id="d3"></div>
<div class="square black" id="e3"></div>
<div class="square white" id="f3"></div>
<div class="square black" id="g3"></div>
<div class="square white" id="h3"></div>
<div class="square white" id="a2"><div class="piece white pawn">♙</div></div>
<div class="square black" id="b2"><div class="piece white pawn">♙</div></div>
<div class="square white" id="c2"><div class="piece white pawn">♙</div></div>
<div class="square black" id="d2"><div class="piece white pawn">♙</div></div>
<div class="square white" id="e2"><div class="piece white pawn">♙</div></div>
<div class="square black" id="f2"><div class="piece white pawn">♙</div></div>
<div class="square white" id="g2"><div class="piece white pawn">♙</div></div>
<div class="square black" id="h2"><div class="piece white pawn">♙</div></div>
<div class="square black" id="a1"><div class="piece white rook">♖</div></div>
<div class="square white" id="b1"><div class="piece white knight">♘</div></div>
<div class="square black" id="c1"><div class="piece white bishop">♗</div></div>
<div class="square white" id="d1"><div class="piece white queen">♕</div></div>
<div class="square black" id="e1"><div class="piece white king">♔</div></div>
<div class="square white" id="f1"><div class="piece white bishop">♗</div></div>
<div class="square black" id="g1"><div class="piece white knight">♘</div></div>
<div class="square white" id="h1"><div class="piece white rook">♖</div></div>
</div>
<div id="moves">
<table>
<thead>
<tr>
<th>#</th>
<th>W</th>
<th>B</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</body>
<script src="interact.js"></script>
<script src="chess-board.js"></script>
</html>