Pathfinding is a Windows Forms application written in C# that demonstrates pathfinding algorithms on a grid-based map. The project visualizes how different algorithms traverse a grid to find the shortest path between two points, making it a useful educational tool for understanding pathfinding concepts.
- Visual representation of a grid and nodes (cells)
- Support for multiple pathfinding algorithms (e.g., A*, Dijkstra, etc.)
- Interactive UI to set start/end points and obstacles
- Step-by-step visualization of the algorithm’s progress
- Customizable grid size and settings
- Windows OS
- .NET 8.0 SDK or newer
- Visual Studio 2022 or later (recommended for Windows Forms designer support)
- Clone the repository:
git clone https://github.com/alex45101/GMR_Pathfinding.git
- Open
GMR_Pathfinding.slnin Visual Studio. - Build the solution (
Ctrl+Shift+B). - Run the project (
F5or click "Start Debugging").
Cell.cs,Grid.cs,Graph.cs: Core data structures for the grid and pathfinding logicForm1.cs,Form1.Designer.cs: Main Windows Form and UI logicEnums.cs,VisualState.cs,Settings.cs: Supporting types and configurationIDrawable.cs: Interface for drawable objectsProgram.cs: Application entry point
- Set the start and end points by clicking on the grid.
- Add obstacles by clicking or dragging on cells.
- Select the desired algorithm and start the visualization.
- Watch the algorithm find the shortest path in real time.
This project is licensed under the MIT License.