Skip to content
/ rmaze Public

Ruby tool and library for multidimensional maze generation

License

Notifications You must be signed in to change notification settings

pedrohml/rmaze

Repository files navigation

RMaze

Ruby library for multidimensional maze generation

Gem Version Build Status Coverage Status 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 !

About

Ruby tool and library for multidimensional maze generation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages