-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (107 loc) · 4.08 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Reversi</title>
<link rel="stylesheet" href="./index.css"></link>
</head>
<body>
<div id="game">
<div id="game-field">
<div id="controls">
<div class="score-block">
<p>Player:</p>
<div id="player-1-score-field" class="score-field">
<p id="player-1-score" class="player-score">2</p>
</div>
</div>
<div id="game-button">
<p>New Game</p>
</div>
<div class="score-block">
<p>Computer:</p>
<div id="player-2-score-field" class="score-field">
<p id="player-2-score" class="player-score">2</p>
</div>
</div>
</div>
<div id="board">
<div id="1, 1" class="square"></div>
<div id="2, 1" class="square"></div>
<div id="3, 1" class="square"></div>
<div id="4, 1" class="square"></div>
<div id="5, 1" class="square"></div>
<div id="6, 1" class="square"></div>
<div id="7, 1" class="square"></div>
<div id="8, 1" class="square"></div>
<div id="1, 2" class="square"></div>
<div id="2, 2" class="square"></div>
<div id="3, 2" class="square"></div>
<div id="4, 2" class="square"></div>
<div id="5, 2" class="square"></div>
<div id="6, 2" class="square"></div>
<div id="7, 2" class="square"></div>
<div id="8, 2" class="square"></div>
<div id="1, 3" class="square"></div>
<div id="2, 3" class="square"></div>
<div id="3, 3" class="square"></div>
<div id="4, 3" class="square"></div>
<div id="5, 3" class="square"></div>
<div id="6, 3" class="square"></div>
<div id="7, 3" class="square"></div>
<div id="8, 3" class="square"></div>
<div id="1, 4" class="square"></div>
<div id="2, 4" class="square"></div>
<div id="3, 4" class="square"></div>
<div id="4, 4" class="square"></div>
<div id="5, 4" class="square"></div>
<div id="6, 4" class="square"></div>
<div id="7, 4" class="square"></div>
<div id="8, 4" class="square"></div>
<div id="1, 5" class="square"></div>
<div id="2, 5" class="square"></div>
<div id="3, 5" class="square"></div>
<div id="4, 5" class="square"></div>
<div id="5, 5" class="square"></div>
<div id="6, 5" class="square"></div>
<div id="7, 5" class="square"></div>
<div id="8, 5" class="square"></div>
<div id="1, 6" class="square"></div>
<div id="2, 6" class="square"></div>
<div id="3, 6" class="square"></div>
<div id="4, 6" class="square"></div>
<div id="5, 6" class="square"></div>
<div id="6, 6" class="square"></div>
<div id="7, 6" class="square"></div>
<div id="8, 6" class="square"></div>
<div id="1, 7" class="square"></div>
<div id="2, 7" class="square"></div>
<div id="3, 7" class="square"></div>
<div id="4, 7" class="square"></div>
<div id="5, 7" class="square"></div>
<div id="6, 7" class="square"></div>
<div id="7, 7" class="square"></div>
<div id="8, 7" class="square"></div>
<div id="1, 8" class="square"></div>
<div id="2, 8" class="square"></div>
<div id="3, 8" class="square"></div>
<div id="4, 8" class="square"></div>
<div id="5, 8" class="square"></div>
<div id="6, 8" class="square"></div>
<div id="7, 8" class="square"></div>
<div id="8, 8" class="square"></div>
</div>
</div>
<div id="no-moves">
<p>Player has no moves</p>
</div>
<div class="game-results">
<h3 id="game-results-text">Draw!</h3>
<div id="restart">
<p>Play again</p>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>