Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazer

A simple random maze generator

Setup

bundle install
bundle exec rackup

Now you can visit the web interface at http://127.0.0.1:9292.

Use this command to run the test suite:

bundle exec rspec

Usage

/maze/random generates a radom maze

$ curl http://localhost:9292/maze/random
<pre>
+---+---+---+---+---+---+---+---+---+---+
| S |       |                           |
+   +   +---+   +---+   +   +   +   +---+
|           |       |   |   |   |   |   |
+---+---+   +   +---+   +---+---+   +   +
|               |           |           |
+   +   +   +   +---+---+---+---+---+---+
|   |   |   |       |                   |
+---+   +---+---+   +---+   +---+---+---+
|   |   |                               |
+   +---+---+---+   +---+---+---+---+   +
|           |               |           |
+   +---+   +---+---+---+   +---+---+---+
|   |   |                   |           |
+---+   +---+   +---+---+   +---+---+   +
|   |   |   |   |   |   |               |
+   +   +   +---+   +   +---+   +---+---+
|       |   |       |   |       |       |
+---+   +   +   +   +   +   +---+---+   +
|               |                     E |
+---+---+---+---+---+---+---+---+---+---+
</pre>

Request params:

  • size Defaults to 10, will set the resolution of the maze eg /maze/random?size=6 will produce a 36 rooms maze.
  • solution Defaults to false, /maze/random?solution=true will show the path to solve the maze.

About

A simple random maze generator

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages