-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.html
55 lines (49 loc) · 1.51 KB
/
start.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
<!DOCTYPE html>
<html>
<head>
<style>
body, canvas {
margin: 0;
padding: 0;
overflow: hidden;
}
#canvas-id{
border: black 1px solid;
}
.gamebtn{
margin: 30px 30px 30px 30px;
padding: 10px 10px 10px 10px;
font-size: 20px;
color: white;
background-color: chocolate;
}
.gamebtn:hover{
color: black;
background-color: rgb(225, 157, 109);
border: black 3px solid;
border-radius: 3px;
}
</style>
</head>
<body onload="init()">
<center>
<canvas id="canvas-id"></canvas>
<br>
<button class="gamebtn" onclick="resetGame(6)">New game 6x6</button>
<button class="gamebtn" onclick="resetGame(8)">New game 8x8</button>
</center>
<!-- Scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="entities/board.js"></script>
<script src="Utils/point.js"></script>
<script src="entities/Piece.js"></script>
<script src="Utils/Move.js"></script>
<script src="Utils/Rewards.js"></script>
<script src="entities/RL/QLearning.js"></script>
<script src="entities/RL/RandomAgent.js"></script>
<script src="entities/RL/MiniMax.js"></script>
<script src="entities/Simulation.js"></script>
<script src="game.js"></script>
<script src="init.js"></script>
</body>
</html>