-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.19 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Qlearning!</title>
<style>
#content {
display: table;
font-family: 'helvetica neue', sans-serif;
}
.cell {
height: 100px;
width: 100px;
display: table-cell;
color: white;
text-align: center;
vertical-align: middle;
-webkit-user-select: none;
}
.cell div {
background-color: rgba(0,0,0,0.20);
color: white;
padding-top: 40%;
width: 100%;
height: 100%;
}
.active {
background-color: hsla(200, 100%, 50%, 0.85) !important;
border-radius: 50%;
}
</style>
</head>
<body>
<div id="content"></div>
<button onclick="window.runVisualization()">start</button>
<!-- <button onclick="window.advanceEpoch()">Advance Epoch</button> -->
<p>
Click a square to increase its reward. Hold shift and click a square to decrease the reward.
Click a square until it's dark green to turn it into an "absorbing state" (one that will reset the agent when it reaches it).
</p>
<script src="qlearning.js" charset="utf-8"></script>
</body>
</html>