Skip to content

Vetebullen/cs56-games-maze

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cs56-games-maze

A program that generates at random a solvable rectangular maze.

Basic Description

The game creates a maze (slower than actual maze-generation time so that you can watch it grow) then solves it. The algorithm I use to generate the maze is based off of the recursive back-tracker algorithm. I modified the algorithm, however, to run first off of the newest added cell, then the oldest added cell in each iteration. This form of the algorithm generates a sort of branching effect from the point of origin. I also modified the algorithm to be able to randomly spawn new points of origin at a certain specified frequency (from command line arguments; jws uses default values) as the algorithm runs. This creates a sort of "bushy", more complex maze with more grequent path branching.

To see how the recursive backtracker works, visit http://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap

To better understand the idea of alternating betewen running off of the newest and oldest added cells, scroll down to the Growing Tree Algorithm and in the "Cell Selectoin Method" pulldown menu, select "Newest/Oldest, 50/50 split" and click "Run"

About

A program that generates at random a solvable rectangular maze

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%