-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnegamax.html
67 lines (65 loc) · 2.8 KB
/
negamax.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
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="./css/negamax.css">
<link rel="stylesheet" href="./css/main.css">
<!-- <style>
table, td {
border: 1px solid black;
text-align: center;
}
.marginLeft {
margin-left: 5px;
}
.marginTop {
margin-top: 15px;
}
.cell{
cursor: pointer;
}
.textcenter{
text-align: center;
}
#result{
float: right;
margin-right: 200px;
}
</style> -->
</head>
<body>
<div class="container">
<div class="left">
<p class="leftHead">First, select your preferences to generate the board</p>
<nav class="menu">
<ol>
<li class="menu-item">
<a style="cursor: pointer;">Grid Size</a>
<ol class="sub-menu">
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(2)">2X2</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(3)">3x3</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(4)">4x4</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(5)">5x5</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(6)">6x6</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(7)">7x7</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(8)">8x8</a></li>
<li class="menu-item"><a style="cursor: pointer" onclick="setRows(9)">9x9</a></li>
</ol>
</li>
<li class="menu-item" ><a onclick="location.reload()" style="cursor: pointer;">Reset Game</a></li>
<li id="startButton" class="menu-item" ><a onclick="generateFields();" style="cursor: pointer;" class="startButton">Start Game</a></li>
<li id="startButton" class="menu-item" ><a href="index.html" style="cursor: pointer;">back to base</a></li>
</nav>
</div>
<div class="right">
<h1 class="heading">NegaMax : The ultimate TTT</h1>
<h2 class="resultDisplay">Result appear here: <span id="result"></span></h2>
<h3 id="notification"></h3>
<table id="table">
</table>
</div>
</div>
<script type="text/javascript" src="./js/negamax.js"></script>
</body>
</html>