-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
127 lines (109 loc) · 3.67 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="favicon.svg">
<link rel="stylesheet" href="styles.css">
<title>Path Finder</title>
</head>
<body>
<div class="container">
<canvas id="canvas" width="1200" height="1200" ></canvas>
<div class="controls">
<a href="https://github.com/yashodeepchikte/Path-finder" style="color:black; text-decoration: none;">GitHub Page</a>
<button onclick="Astar()" class="astar">Run A*</button>
<button onclick="dijkstras()">Run Dikjstra</button>
<button onclick="DFS()">Run DFS</button>
<br />
<button onclick="recursiveBacktracker()">Run Recursive backtracker maze generation</button>
<button onclick="DFS_MazeGenerator()">Run DFS maze generation</button>
<br />
<button onclick="createVerticalmaze()">Create a vertical Maze</button>
<button onclick="createHorizontalMaze()">Create a Horizontal Maze</button>
<button onclick="createDiagonalMaze()">Create a Diagonal Maze</button>
<button onclick="createSpiralMaze()">Create a Spiral Maze</button>
<br />
<button id="reset" onclick="resetMaze()">Reset Maze</button>
<button id="reset" onclick="clearPath()">Clear Path</button>
<button id="reset" onclick="randomMaze()">Generate a random Maze</button>
<button onclick="createBlackMaze()">Cover entire maze</button>
<br />
<span class="selector">
<label for="distance" class="nav-link active pr-1">Distance Measure</label>
<select class="form-control" id="distance" >
<option>Euclidean Distance</option>
<option>Manhattan Distance</option>
<option>Chess Board Distance</option>
<option>Camberaa Distance</option>
<option>Cosine Distance</option>
</select>
</span>
<span class="selector">
<label for="Neighbours" class="nav-link active pr-1">Neighbours</label>
<select class="form-control" id="Neighbours" onchange="handelNeighboursChange()" >
<option>4-Adjcent Neighbours</option>
<option>Diagonal Neighbours</option>
<option>All 8 Neighbours</option>
</select>
</span>
</div>
<table>
<tr>
<td>
Set delay in milli seconds:
</td>
<td>
<input type="number" onchange="handelSpeedChange(value)" placeholder="delay = 5ms default" />
</td>
</tr>
<tr>
<td>
number of rows:
</td>
<td>
<input type="number" onchange="handelRowsChange(value)" placeholder="rows = 25 by default" />
</td>
</tr>
<tr>
<td>
number of columns:
</td>
<td>
<input type="number" onchange="handelColumnssChange(value)" placeholder="columns = 50 by default" />
</td>
</tr>
<tr>
<td>
Prob. threshold for random maze:
</td>
<td>
<input type="number" onchange="handelThresholdChange(value)" placeholder="Threshold = 0.2 by default" />
</td>
</tr>
<tr>
<td>
Cell seperation :
</td>
<td>
<input type="number" onchange="handelCellSeperationChange(value)" placeholder="Cell Seperation = 1px by default" />
</td>
</tr>
</table>
</div>
<div class="footer">
<div>Made by Yashodeep</div>
<div>
<a href="https://github.com/yashodeepchikte/Path-finder">GitHub Page</a>
</div>
</div>
<script src="scripts/main.js"></script>
<script src="scripts/board.js"></script>
<script src="scripts/Astar.js"></script>
<script src="scripts/prims_maze_generation.js"></script>
<script src="scripts/recursive_backtracker.js"></script>
<script src="scripts/depthFirstSearch_MazeGenerator.js"></script>
<script src="scripts/Dijkstra.js"></script>
<script src="scripts/DepthFirstSearch.js"></script>
</body>
</html>