-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrl.html
54 lines (53 loc) · 1.57 KB
/
rl.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
---
permalink: /rl/
---
<!DOCTYPE html>
<html>
<head>
<title>Reinforcement learning game</title>
<meta charset="utf-8">
<style>
.controlbutton {
font-size: 50px;
}
.center {
margin: auto;
width: 100%;
padding: 10px;
}
#gameContainer {
display: inline-block;
text-align: center;
}
</style>
</head>
<body>
<span id="gameContainer">
<div>
<canvas id="gameCanvas" width="500" height="500" style="border:1px solid #000000;"></canvas>
</div>
<span class="center">
<button id= "up" class="controlbutton" style="color:red" onclick="up()">
⬤
</button>
<button id= "down" class="controlbutton" style="color:yellow" onclick="down()">
⬤
</button>
<button id= "left" class="controlbutton" style="color:violet" onclick="left()">
⬤
</button>
<button id= "right" class="controlbutton" style="color:coral" onclick="right()">
⬤
</button>
<button id= "grab" class="controlbutton" style="color:cyan" onclick="grabControl()">
⬤
</button>
<button id= "grab" class="controlbutton" style="color:darkviolet" onclick="dropControl()">
⬤
</button>
</span>
</span>
<script src="https://chancejs.com/chance.min.js"></script>
<script src="/assets/js/rl/game.js"></script>
</body>
</html>