-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (58 loc) · 1.71 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Robot Js</title>
<link rel="stylesheet" href="css/robotmazeinterface.css">
<link rel="stylesheet" href="css/font-awesome.css">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous">
</script>
<script src="robot.js"></script>
<script src="maze.js"></script>
<script src="mazeSpace.js"></script>
<script src="robotmazeinterface.js"></script>
<script>
var m = new Maze(7,5);
m.setStart(1, 1, 'north');
m.setEnd(7, 1);
m.setWall(1, 1, 'east');
m.setWall(1, 3, 'north');
m.setWall(2, 1, 'north');
m.setWall(2, 2, 'north');
m.setWall(2, 4, 'north');
m.setWall(2, 3, 'east');
m.setWall(3, 2, 'north');
m.setWall(3, 4, 'north');
m.setWall(3, 1, 'east');
m.setWall(3, 2, 'east');
m.setWall(3, 1, 'east');
m.setWall(3, 4, 'east');
m.setWall(4, 2, 'north');
m.setWall(4, 3, 'north');
m.setWall(4, 3, 'east');
m.setWall(4, 5, 'east');
//m.setWall(5, 5, 'east');
m.setWall(6, 4, 'north');
m.setWall(6, 4, 'east');
m.setWall(7, 2, 'north');
m.setWall(6, 2, 'north');
m.setWall(5, 2, 'east');
m.setWall(5, 1, 'north');
m.setWall(6, 1, 'east');
m.setWall(6, 3, 'north');
var r = new Robot();
var i = new RobotMazeInterface(r,m,'#page');
$(document).ready(function() {
i.render();
});
</script>
</head>
<body>
<div id="page">
Loading....
</div>
</body>
</html>