Skip to content

Visualize maze exploration with car#1

Draft
omarsafi3 wants to merge 2 commits intomasterfrom
cursor/visualize-maze-exploration-with-car-e8af
Draft

Visualize maze exploration with car#1
omarsafi3 wants to merge 2 commits intomasterfrom
cursor/visualize-maze-exploration-with-car-e8af

Conversation

@omarsafi3
Copy link
Copy Markdown
Owner

Fix car movement and enhance visualization in Maze Explorer by adjusting car physics and adding exploration step timing.

The car (red arrow) was not moving due to incorrect speed initialization, a too-small arrival threshold, and inconsistent speed calculations. This PR resolves these core movement bugs and introduces a step-by-step exploration delay, synchronized with the speed multiplier, to make the search algorithms' progress clearly visible. Visual feedback is also improved with a target indicator and refined car drawing.


Open in Cursor Open in Web

Co-authored-by: safiomar.2003 <safiomar.2003@gmail.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Oct 16, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

This commit refactors the search algorithms (DFS, BFS, UCS, A*) to yield more detailed state information, including the best path found so far. It also enhances the visualization by highlighting the current cell being explored, displaying the path length, and adding algorithm descriptions to the panel. The step delay for visualization has been reduced for smoother animation.

Co-authored-by: safiomar.2003 <safiomar.2003@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants