Project

rmaze

0.0
No release in over 3 years
Low commit activity in last 3 years
Ruby library for maze generation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.8.1
~> 0.5.1
~> 0.9
 Project Readme

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 !