RMaze

Ruby library for multidimensional maze generation

Gem Version Build Status Coverage Status Security License

Description

This library generates multidimensional mazes.

  • What the purpose ? Mainly, games.
  • What do I want Nth-d mazes for ? I do not know yet.

Tool usage

The tool rmaze is in initial version and only supports bidimensional mazes.

Usage: rmaze [options]

Basic options:
    -w, --width width                Specify the maze width (default: 10)
    -h, --height height              Specify the maze height (default: 10)

Algorithms:
    -b, --backtrace                  Choose backtrace algorithm (default)

Tool usage examples

Default usage (width=10, height=10)

> rmaze

# # # # # # # # # # # # # # # # # # # # #
#           #                           #
# # #   #   # # # # # # #   # # # # # # #
#       #           #       #           #
#   # # # # # # #   #   # # #   # # #   #
#   #       #           #       #       #
#   #   #   #   # # # # #   # # #   #   #
#       #   #   #       #   #       #   #
#   # # #   # # #   #   #   #   # # #   #
#   #   #           #       #       #   #
#   #   # # # # # # # # # # # # #   #   #
#       #                           #   #
#   # # #   # # # # # # # # # # # # #   #
#   #       #           #           #   #
#   #   #   #   # # #   #   # # #   # # #
#   #   #   #   #   #   #   #   #       #
#   #   #   #   #   #   #   #   # # # # #
#   #   #   #       #       #           #
#   #   # # # # #   # # # # #   # # #   #
#   #                           #       #
# # # # # # # # # # # # # # # # # # # # #

Generate mazes with customized dimensions (width=5, height=2)

> rmaze -w 5 -h 2

# # # # # # # # # # #
#                   #
#   # # #   # # # # #
#       #           #
# # # # # # # # # # #

Enjoy !