feature/pathfinding-finetuning #11

Merged
lobo merged 3 commits from feature/pathfinding-finetuning into main 2026-02-05 09:25:41 +01:00
Owner
No description provided.
lobo added 3 commits 2026-02-05 09:25:33 +01:00
Consolidate separate visualizeDijkstra/visualizeAStar into a single visualize(algorithm) method and update the template buttons to call visualize('dijkstra') or visualize('astar'). The new method dispatches to the appropriate pathfindingService method, centralizes timing/animation handling, and reduces duplicated logic. Also apply minor About page styling tweaks: add left margin to the Experience h2 and remove the .xp-list rules from the SCSS (small cleanup/reformat).
Created new normal case
Consolidate scenario creation by replacing separate normal/edge/clear handlers with createCase({withWalls, scenario}). Add a new 'random' scenario that picks random start/end positions and places random walls (controlled by MAX_RANDOM_WALLS_FACTORS). Change pathLength to a string and display "∞" for empty paths. Update applyGridSize logic to avoid unnecessary resets when dimensions unchanged and to initialize with the new API. Add random helper and MAX_RANDOM_WALLS_FACTORS constant, update template buttons to call createCase, and add i18n entries for the random case and updated clear-board label.
lobo merged commit ff1ee9b5f6 into main 2026-02-05 09:25:41 +01:00
lobo deleted branch feature/pathfinding-finetuning 2026-02-05 09:25:45 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Lobo_Corp/playground-frontend#11