Pathfinding Lab: 6 algorithms, interactive grid, mazes, live re-path (v5) - #1
Open
Sebby1770 wants to merge 1 commit into
Open
Pathfinding Lab: 6 algorithms, interactive grid, mazes, live re-path (v5)#1Sebby1770 wants to merge 1 commit into
Sebby1770 wants to merge 1 commit into
Conversation
…-path (v5) Turns Sort Lab into Algorithm Lab with a second visualizer mode: - BFS, DFS, Dijkstra, A*, Greedy Best-First, and Bidirectional BFS on an interactive grid with walls, weighted terrain (cost x5), and draggable start/goal markers that re-solve the path live after a run - Recursive-division maze generator (odd-lattice walls, even-lattice gaps and endpoints, so every maze is guaranteed solvable), plus random scatter and weighted-terrain generators - Optional diagonal movement with octile heuristic and no corner-cutting - Per-algorithm profile panel (guarantee, complexity, weight-awareness) and live metrics (visited, steps, cost, compute time) - Mode tabs with per-mode keyboard shortcuts; sorting shortcuts no longer fire in pathfinding mode - Fix: workspaces with the hidden attribute now actually hide (the .workspace display:grid rule was overriding the UA [hidden] style) - SW cache bumped to v4, precaches pathfinding.js; manifest/README/ CHANGELOG rebranded to Algorithm Lab Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns Sort Lab into Algorithm Lab by adding a full pathfinding visualizer as a second mode, switchable via new topbar tabs. Pure vanilla JS, no build step — same philosophy as the rest of the app.
Pathfinding Lab
V/C/B/Min pathfinding; sorting keys no longer fire there)Bug fix included
.workspace { display: grid }was overriding the UA[hidden]style, sohiddenon a workspace didn't actually hide it. Added an explicit.workspace[hidden] { display: none }.Verification (all in-browser)
🤖 Generated with Claude Code