Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.46 KB

README.md

File metadata and controls

24 lines (21 loc) · 1.46 KB

🕹️Maze Game/Solver Development in Java

Description: Developed an interactive maze game using Java that supports input of any arbitrary maze encoded in .txt format through file handling.

🚀Features:

Terminal-Based Game: Users can navigate through the maze in a terminal-based interface.
GUI Visualization: Provides a visual representation of a guided solution using a GUI developed with the Java Swing Library.
Algorithm Implementation: Implemented the A* search algorithm for efficient maze solving.
Technologies: Java, Java Swing Library, A* Search Algorithm, File Handling, Object-Oriented Design

🗺️How to Use

Enter the src folder and locate Launcher.java: cd src
Compile this using: javac Launcher.java
To run a playable version of a maze file simply use the file location as an argument eg: java Launcher maze_text_files/maze001.txt
You can move around use the WASD keys and hitting enter
To see the solution to the maze in a GUI input GUI as the first argument, then the filepath eg: java Launcher GUI maze_text_files/maze001.txt

🖌️Creating Your Own Mazes

The program supports mazes in a .txt format: see src/maze_text_files/maze001.txt for an example.
The first line must contain the number of rows and columns separated by a space.
Subsequent lines are treated as rows in the maze encode by:
'#' - walls
' ' - empty space to walk through
'S' - the starting point of the maze
'E' - the end goal of the maze