Skip to content

Pathfinding Visualizer Issue #1070

@nishtha-agarwal-211

Description

@nishtha-agarwal-211

Description

Goal: Build a project that helps users visualize classic pathfinding algorithms (Dijkstra, A*, BFS, DFS) finding their way from a start node to an end node around user-placed obstacles.

Part 1: Python CLI / GUI (math/Pathfinding-Visualizer/)

  • Implement pathfinding logic using a grid structure.
  • A CLI representation (e.g., using curses or print refreshes) OR a GUI application using pygame/tkinter.
  • Allow setting a start point, target point, and drawing walls/obstacles.

Part 2: Web Interface (web-app/)

  • Build an interactive grid component where users can:
    • Click-and-drag to paint walls/obstacles.
    • Select start/end nodes.
    • Select algorithm (BFS, DFS, Dijkstra, A*).
    • Control visualization speed.
  • Animate the exploration process (change grid cells to "visiting" and "visited" colors) and highlight the final shortest path in real time.

Deliverables

  • Create directory math/Pathfinding-Visualizer/ with the python code.
  • Add unit tests in tests/test_pathfinding.py to assert correct shortest paths.
  • Register in projects_registry.json.
  • Build the interactive grid visualization in web-app/js/projects/pathfinding-visualizer.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions