Added furth UI behavior tweaks, removed a script and moved the p5.min.js into the repo.

This commit is contained in:
2020-05-19 14:29:10 -05:00
parent dc292305fb
commit 163c028145
4 changed files with 34 additions and 6 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ function draw() {
maze.resetMazeState();
let selectedAlgo = document.getElementById("searchAlgo").value;
let solvingFramerate = document.getElementById("solvingFrameRate").value;
if(selectedAlgo == "depthFirst")
algo = new DepthFirstSolver(maze.grid[0], maze.grid[maze.index(7, 7)]);
else if(selectedAlgo == "breadthFirst")
@@ -36,7 +36,7 @@ function draw() {
//else if(selectedAlgo == "a*")
print("Maze generation done");
frameRate(Number(solvingFramerate));
frameRate(Number(document.getElementById("solvingFrameRate").value));
}
else if (maze.mazeGenDone && algo.frontier.length > 0){
algo.solve(maze);