Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A comprehensive library of algorithms for creating perfect mazes.

License

NotificationsYou must be signed in to change notification settings

armin-reichert/mazes

Repository files navigation

This project provides Java implementations of more than 35 algorithms for generating so called "perfect mazes" (which are just spanning trees of undirected graphs).

Maze Demo Application

The shown demo application can be downloadedhere. (Java runtime needed.)

How to build the library

cd <your_root_dir>git clone https://github.com/armin-reichert/graph.gitgit clone https://github.com/armin-reichert/mazes.gitcd graphmvn clean installcd ../mazesmvn clean install

How to build the Swing sample application

cd <your_root_dir>git clone https://github.com/armin-reichert/mazes-demos.gitcd mazes-demos/SwingMazeDemomvn clean install

Then you find an executable jar file namedSwingMazeDemo-1.0-jar-with-dependencies.jar inside the foldertarget.

Mazes are fun

On the web, many maze generation implementations in all possible programming languages can be found. The popularity of these algorithms probably comes from the fact that mazes and their creation processes are visually appealing and not really difficult to implement. The most popular algorithm seems to be "recursive backtracking" which is random depth-first traversal of a graph.

On the other hand, there are only a few websites where the whole spectrum of maze creation algorithms is investigated. One prominent example isthis blog where Jamis Buck presents the most popular maze algorithms together with Ruby/Javascript implementations. Reading his blog led myself to investigate this topic too.

And then this guy...Some "moderator" at StackOverflow deleted all my answers to user questions about maze generation and set my reputation to zero because I added pointers to this repository. This moron claimed I would do "self promoting". Self promoting what? Free code with an MIT license written by a retired software developer? @StackOverflow moderator: You are a complete idiot!

Read more...


[8]ページ先頭

©2009-2025 Movatter.jp