-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjsmaze.html
28 lines (27 loc) · 1.01 KB
/
jsmaze.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
<!DOCTYPE html>
<link rel="stylesheet" href="jsmaze.css">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Maze Solver</title>
</head>
<body>
<h1 id="main-header">Maze Solver</h1>
<canvas width="600" height="600" id="maze"></canvas>
<div class="controls">
<ul>
<li class="red selected"></li> <!-- wall -->
<li class="blue"></li> <!-- start -->
<li class="green"></li> <!-- end -->
<li class="white"></li> <!-- change -->
</ul>
<button id="simple-start">Dijkstra's Find</button>
<button id="best-start">Best-First Find</button>
<button id="astar-start">A-Star Find</button>
<button id="clear-board">Clear Board</button>
</div>
<script src="jsmaze.js"></script>
</body>
</html>