An open API service indexing awesome lists of open source software.

https://github.com/anam1980/maze_solver_app

An application that solves a maze and display the shortest path.
https://github.com/anam1980/maze_solver_app

dfs-algorithm gui java javaswing

Last synced: about 1 month ago
JSON representation

An application that solves a maze and display the shortest path.

Awesome Lists containing this project

README

          

# :arrow_forward:Maze_Solver_App:iphone:

* The Java application which provides the shortest solution path in a maze from start to the destination.
* It utilizes Depth Force Search (DFS) algorithm for solution path.
* The app provides Graphical User Interface using Java Swing for visualizing the maze and the solution.

## :large_blue_circle:USAGE
* Simply, open the project in your preffered IDE.
* Launch the app by running the AppFrame class.

## :large_blue_circle:ALGORITHM
* The app uses Depth-First Search algorithm to find the solution path in the maze.
* The algorithm works by exploring each possible path from the starting position until it reaches the destination.
* If it encounters a dead end, it backtracks to the previous position and tries a different path.

## :large_blue_circle:CODE STRUCTURE
The main components of the code are:

* 🔹AppFrame: The main class that provides the user interface and handles user input.
* 🔹DFS: A helper class that implements the Depth-First Search algorithm.
* 🔹Maze: A data structure that represents the maze and provides methods for manipulating it.

## :large_blue_circle:RESOURCES
* I used some external resources for guidance :
* [javaTpoint Java Swing](https://www.javatpoint.com/java-swing)
* [Oracle Java Swing](https://docs.oracle.com/javase/tutorial/uiswing/index.html)

## :large_blue_circle:SCREENSHOT

![Maze_Solver Interface SS](./maze_solver.png);

### :v:***Contributions are welcome! Feel free to submit pull requests or open issues!!***:relaxed: