-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (54 loc) · 1.64 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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Tic-Tac-Toe</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="lib/font-awesome.css" />
</head>
<body>
<header>
<h1 class="title">Tic-tac-toe</h1>
<div class="search-method">
<select id="searchMethodSelector">
<option value="minimax">Minimax</option>
<option value="alphaBeta">Alpha-Beta Hardsoft</option>
</select>
</div>
</header>
<section id="game">
<table class="board">
<tr>
<td data-index="0"></td>
<td data-index="1"></td>
<td data-index="2"></td>
</tr>
<tr>
<td data-index="3"></td>
<td data-index="4"></td>
<td data-index="5"></td>
</tr>
<tr>
<td data-index="6"></td>
<td data-index="7"></td>
<td data-index="8"></td>
</tr>
</table>
<div id="resultPanel">
<p class="result win">You win!</p>
<p class="result lose">You lose!</p>
<p class="result draw">It's a draw!</p>
<button id="restart">Restart</button>
</div>
</section>
<section id="searchTreePanel">
<ul id="searchTree"></ul>
</section>
<script src="lib/lodash.js"></script>
<script src="lib/jquery.js"></script>
<script src="search-algorithms/minimax.js"></script>
<script src="search-algorithms/alpha-beta-hardsoft.js"></script>
<script src="tic-tac-toe.service.js"></script>
<script src="tic-tac-toe.controller.js"></script>
</body>
</html>