Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Maze Solver – Java

A simple and flexible maze-solving algorithm implemented in Java.
The solver reads a maze from a .txt file, parses it into a grid, and finds a valid path from an entrance on the top row to an exit on any border (left, right, bottom).

The maze can be any size as long as it follows two rules:

  1. Entrance is on the top row.
  2. Exit is on the left, right, or bottom boundary.

🚀 Features

  • ✔ Reads maze from an external text file
  • ✔ Works on any maze layout fitting the entrance/exit rules
  • ✔ Uses Breath First Search (BFS)
  • ✔ Prevents revisiting nodes
  • ✔ Outputs:
    • Full coordinate path
  • ✔ Clean, object-oriented structure

About

A generic path-finding algorithm that reads any maze from a text file and finds a valid path from an entrance on the top row to an exit located on the left, right, or bottom edge. Implements DFS-based traversal with backtracking and outputs both coordinate paths and visualized representation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages