-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (87 loc) · 2.95 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
<!doctype html>
<html>
<head>
<title>Tic Tac Toe</title>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="icon.png" />
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="bot.js"></script>
<script src="main.js"></script>
<script src="statistics.js"></script>
</head>
<body>
<div class="game">
<div class="form">
<h1>Tic Tac Toe</h1>
<div class="player_input"><input id="player1" value="" maxlength="1" /><span class="points" id="p1">-</span></div>
<div class="player_input"><span class="points" id="p2">-</span><input id="player2" value="" maxlength="1" /></div>
<div class="select-container">
<div id="bot1" class="select-col">
<select id="difficultyBot1">
<option value="1">Easy</option>
<option value="2" selected>Normal</option>
<option value="3">Hard</option>
</select>
</div>
<div id="selectMain" class="select-col">
<select id="difficulty">
<option value="1">Easy</option>
<option value="2">Normal</option>
<option value="3" selected>Hard</option>
<option value="4">Human vs Human</option>
<option value="5">Bot vs Bot</option>
</select>
<button id="restart">Restart</button>
<button id="stop">Stop</button>
<input type="range" min="-1000" max="-1" value="-100" id="speed" />
</div>
<div id="bot2" class="select-col">
<select id="difficultyBot2">
<option value="1">Easy</option>
<option value="2" selected>Normal</option>
<option value="3">Hard</option>
</select>
</div>
</div>
</div>
<div class="banner"></div>
<div id="statistic">
<h2>Statistic:<div id="ddArrow">▼ </div></h2>
<div id="dropDown">
<canvas id="pie"></canvas>
<div id="legend">
<div id="totalCon"><span id="total"></span></div>
<div class="legendRow"><div class="withBtn"><div class="colorBtn" id="colorWin1"></div><span id="win1"></span></div></div>
<div class="legendRow"><div class="withBtn"><div class="colorBtn" id="colorWin2"></div><span id="win2"></span></div></div>
<div class="legendRow"><div class="withBtn"><div class="colorBtn" id="colorTie"></div><span id="tie"></span></div></div>
</div>
<canvas id="line"></canvas>
</div>
</div>
<div class="table-container">
<table>
<tr>
<td id="0"></td>
<td id="1"></td>
<td id="2"></td>
</tr>
<tr>
<td id="3"></td>
<td id="4"></td>
<td id="5"></td>
</tr>
<tr>
<td id="6"></td>
<td id="7"></td>
<td id="8"></td>
</tr>
</table>
</div>
</div>
<div class="footer">
<span>©Philipp Schöppner</span>
</div>
</body>
</html>