broadfield-dev commited on
Commit
f4469a2
·
verified ·
1 Parent(s): 21a66c9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +46 -18
index.html CHANGED
@@ -1,19 +1,47 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>