-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
35 lines (34 loc) · 1.07 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
<!--
Self playing mario game with q-learning
-->
<!DOCTYPE html>
<html>
<head>
<title>Mario Vs. Ai</title>
<link rel="stylesheet" href="./style/mario.css">
</head>
<body>
<div class="container">
<select onchange="reset()" id="level">
<option value="100">Level 0</option>
<option value="20">Level 1</option>
<option value="15">Level 2</option>
<option value="10">Level 3</option>
<option value="7">Level 4</option>
</select>
<button onclick="infiniteTrain()" id="train">Train</button>
<button onclick="reset()">Reset</button>
<button onclick="start_game()">New Game</button>
</div>
<div class="env" id="env"></div>
<div class="mario" id="mario"></div>
<div class="princess" id="princess"></div>
<div class="agent" id="agent"></div>
<code class="info" id="info"></code>
</body>
<script src="scripts/env.js"></script>
<script src="scripts/ai.js"></script>
<script src="scripts/moves.js"></script>
<script src="scripts/game.js"></script>
</html>