-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (97 loc) · 3.87 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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>Chess</title>
<link rel="stylesheet" href="libraries/chessboardjs/css/chessboard-1.0.0.min.css">
<link rel="stylesheet" href="resources/css/main.css">
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="libraries/chessboardjs/js/chessboard-1.0.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.2/chess.js"> </script>
<script src="https://kit.fontawesome.com/03547048c8.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.15.0/d3.min.js"></script>
<script src = "resources/js/main.js"></script>
<script src = "resources/models/player.js"></script>
<script src = "resources/models/randomBot.js"></script>
<script src = "resources/models/pushBot.js"></script>
<script src = "resources/models/captureBot.js"></script>
<script src = "resources/models/choiceTable.js"></script>
<script src = "resources/models/thoughtProcess.js"></script>
<script src = "resources/models/tree.js"></script>
<script src = "resources/models/pointsBot.js"></script>
<script src = "resources/models/greedyBot.js"></script>
<script src = "resources/models/orderedTable.js"></script>
<script src = "resources/models/alphaBeta.js"></script>
<script src = "resources/models/icicle.js"></script>
</head>
<body>
<ul class="navbar">
<li><a href="/">Home</a></li>
</ul>
<div id="bot1" class="column">
<p>
<select id='bot1selector'>
<option value="randomBot">Random Bot</option>
<option value="pushBot">Push Bot</option>
<option value="captureBot">Capture Bot</option>
<option value="pointsBot">Points Bot</option>
<option value="greedyBot">Greedy Bot</option>
<option value="alphaBeta3">Alpha Beta Depth 3</option>
<option value="alphaBeta2">Alpha Beta Depth 2</option>
</select>
</p>
</div>
<div class="column" style="margin: auto;max-height: 77vh;">
<div id="boardInfo">
<div id='overlaytext'>
<br></br>
Select Bots from the dropdown menus and press start
<br></br>
</div>
<button type="button" onclick="start()">Start</button>
</div>
<div id="myBoard" style="width: 95%;">
<script>init()</script>
</div>
<table style="padding-top: 10px;">
<tr id = "controls">
<th class="moveno"></th>
<th>
<i class="fas fa-step-backward" onclick="stepBack()"></i>
</th>
<th>
<i class="fas fa-play middlecol" id="playButton" onclick="pauseButton()" ></i>
</th>
<th>
<i class="fas fa-step-forward" onclick="stepForward()"></i>
</th>
<th class="endcol"></th>
</tr>
</table>
<div class="tablewrapper" style="overflow: auto; max-height: 20vh;">
<table class="odd" id="moves">
<tr>
<th class="moveno even"></th>
<th class="even">White</th>
<th class="even"></th>
<th class="even">Black</th>
<th class="endcol even"></th>
</tr>
</table>
</div>
</div>
<div id="bot2" class="column">
<p>
<select id='bot2selector'>
<option value="randomBot">Random Bot</option>
<option value="pushBot">Push Bot</option>
<option value="captureBot">Capture Bot</option>
<option value="pointsBot">Points Bot</option>
<option value="greedyBot">Greedy Bot</option>
<option value="alphaBeta3">Alpha Beta Depth 3</option>
<option value="alphaBeta2">Alpha Beta Depth 2</option>
</select>
</p>
</div>
</body>
</html>