-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaze.html
45 lines (40 loc) · 935 Bytes
/
maze.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
<!DOCTYPE html>
<html>
<head>
<title>Welcome to my maze!!!</title>
</head>
<body>
<div class="header">
<h1>
BFS&ASTAR&ANTCOLONY
</h1>
<p class="welcome">
welcome to my maze
</p>
</div>
<canvas id="mycanvas" width="800px" height="500px">
</canvas>
<div id="map">
<div class="left_line">
<button onclick="if(astarclick>0){aStar();astarclick--;}">
ASTAR
</button>
<button onclick="if(bfsclick>0){BFS(start,end);bfsclick--;}">
BFS
</button>
<button onclick="if(antclick>0){antColony();antclick--;}">
ANTCOLONY
</button>
<button onclick="clearCanvas();updateMaze();">
UPDATE
</button>
<p class="wait">
waiting a few seconds
</p>
</div>
</div>
</body>
<link rel="stylesheet" type="text/css" href="maze.css">
<script src="linkList.js"></script>
<script src="maze.js"></script>
</html>