Skip to content

This program will recursively find a path from a starting point to an end point of a maze specified in a text file.

Notifications You must be signed in to change notification settings

prashantghimire/2d-maze-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-Maze-Recursive Solution using Java

  • This program will recursively find a path from a starting point 'S' to an end point 'G' of a maze specified in a text file.
  • The solution is written to a text file.

Example:

Input File:

XXXXXXXXXXX
XXSXXXXX XX
XX XXXXX XX
XX XXXXX XX
XX XXXXX XX
XX       XX
XX   XXX XX
XX       XX
XX  X XXXXX
XX  X XXXXX
XX XX XX XX
XX XX XX XX
XX XGXXXXXX
XX   XXXXXX
XXXXXXXXXXX

Output file:

XXXXXXXXXXX
XXSXXXXX XX
XX.XXXXX XX
XX.XXXXX XX
XX.XXXXX XX
XX.......XX
XX   XXX.XX
XX ......XX
XX .X XXXXX
XX..X XXXXX
XX.XX XX XX
XX.XX XX XX
XX.XGXXXXXX
XX...XXXXXX
XXXXXXXXXXX

About

This program will recursively find a path from a starting point to an end point of a maze specified in a text file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages