Spaces:
Running
Running
Update index.html
Browse files- index.html +46 -18
index.html
CHANGED
@@ -1,19 +1,47 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Reinforcement Learning Grid World</title>
|
7 |
+
<style>
|
8 |
+
.grid {
|
9 |
+
display: grid;
|
10 |
+
grid-template-columns: repeat(5, 1fr);
|
11 |
+
gap: 1px;
|
12 |
+
width: 500px;
|
13 |
+
height: 500px;
|
14 |
+
margin: 20px auto;
|
15 |
+
border: 1px solid black;
|
16 |
+
}
|
17 |
+
.cell {
|
18 |
+
display: flex;
|
19 |
+
justify-content: center;
|
20 |
+
align-items: center;
|
21 |
+
background-color: white;
|
22 |
+
border: 1px solid black;
|
23 |
+
}
|
24 |
+
.agent {
|
25 |
+
background-color: blue;
|
26 |
+
color: white;
|
27 |
+
}
|
28 |
+
.goal {
|
29 |
+
background-color: green;
|
30 |
+
color: white;
|
31 |
+
}
|
32 |
+
.obstacle {
|
33 |
+
background-color: red;
|
34 |
+
color: white;
|
35 |
+
}
|
36 |
+
</style>
|
37 |
+
</head>
|
38 |
+
<body>
|
39 |
+
<div id="grid" class="grid">
|
40 |
+
<!-- Cells will be dynamically generated here -->
|
41 |
+
</div>
|
42 |
+
<button id="startButton">Start</button>
|
43 |
+
<button id="stepButton">Step</button>
|
44 |
+
<button id="resetButton">Reset</button>
|
45 |
+
<script src="rl_script.js"></script>
|
46 |
+
</body>
|
47 |
</html>
|