-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (114 loc) · 4.48 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
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset = "utf-8">
<meta http-equiv = "X-UA-Compatible" content = "IE=edge">
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<meta name="author" content="Ma Lab">
<title>4IAR Solver</title>
<script src="./static/js/lib/jquery-2.2.4.min.js"></script>
<script src="./static/js/lib/jquery-ui.min.js"></script>
<script src="./static/js/lib/bootstrap-12/bootstrap.min.js"></script>
<script src="./static/js/lib/underscore-min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="./static/js/util.js"></script>
<script src="./static/js/game.js"></script>
<script src="./static/js/AI.js"></script>
<script src="./static/js/visulization.js"></script>
<script src="./static/scripts/Code/makemove.js"></script>
<script>
var blocks, player, builder;
M=9;
N=4;
K=4;
$(document).ready(function() {
current_block = 0;
player = new Player();
builder = new Builder();
solver = new Solver();
visualizer = new Visualizer();
board = new Board();
board.create_tiles()
blocks = [new Condition_AI(60)];
blocks[current_block].run()
});
</script>
<link href = "./static/css/lib/bootstrap-12/bootstrap.min.css" rel = "stylesheet">
<link href = './static/css/stylesheet.css' rel='stylesheet'>
</head>
<body>
<div class="modal fade" id="feedback-modal" data-backdrop="static" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
<h2 class="modal-title">Good Game</h2>
<!-- <div class='row'>-->
<!-- <div class='col-xs-10 col-xs-offset-1 text-center' id='scorebox'>-->
<!-- <div id='p0-score' class='col-xs-6 text-center'>-->
<!-- <h4>You:</h4>-->
<!-- <h2>0</h2>-->
<!-- </div>-->
<!-- <div id='p1-score' class='col-xs-6 text-center'>-->
<!-- <h4>Computer:</h4>-->
<!-- <h2>0</h2>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<button class="btn btn-large btn-warning" id="reset-puzzle-dialog">Reset Puzzle</button>
<button class="btn btn-large btn-warning" id="reset-board-dialog">Reset Board</button>
</div>
</div>
</div>
</div>
<div class='container-fluid text-center'>
<div class='row'>
<div class="headertext col-xs-8 col-xs-offset-2" id="title text">
<h1>Your turn</h1>
</div>
</div>
<div class="row">
<div class="container-fluid col-xs-8 col-xs-offset-2 canvas-container">
<div class="canvas"></div>
<button class="btn btn-large btn-warning" id="black">Black</button>
<button class="btn btn-large btn-warning" id="white">White</button>
<button class="btn btn-large btn-warning" id="start">Solve</button>
<button class="btn btn-large btn-warning" id="reset-puzzle">Reset Puzzle</button>
<button class="btn btn-large btn-warning" id="reset-board">Reset Board</button>
<select id="win-in-n">
<option value=1>win-in-1</option>
<option value=2>win-in-2</option>
<option value=3>win-in-3</option>
<option value=4>win-in-4</option>
<option value=5>win-in-5</option>
<option value=6>win-in-6</option>
<option value=7>win-in-7</option>
<option value=8>win-in-8</option>
<option value=9>win-in-9</option>
<option value=10>win-in-10</option>
<option value=11>win-in-11</option>
<option value=12>win-in-12</option>
<option value=13>win-in-13</option>
<option value=14>win-in-14</option>
<option value=15>win-in-15</option>
<option value=16>win-in-16</option>
<option value=17>win-in-17</option>
<option value=18>win-in-18</option>
</select>
<a href="html/batch.html">Solve in batch</a>
</div>
</div>
<div class='row'>
<div class="headertext col-xs-8 col-xs-offset-2" id="result text">
<h1>Results will be shown here</h1>
</div>
</div>
<div id="sol_dataviz" justify-content="center" align-items="center"></div>
<canvas id="sourceCanvas" width="900" height="400" style="display:none;"></canvas>
<!-- <div class='row' display="flex" justify-content="center" align-items="center">-->
<!-- <div id="sol_dataviz"></div>-->
<!-- </div>-->
</div>
</body>
</html>