Sha256: ea3d9937428bc7eea8ac9a64e61d7dc04e4d77759a2ba45512dc1e2195f5be7c

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 KB

Contents

# RMaze
Ruby library and tool for 2D maze generation

[![Build Status](http://travis-ci.org/pedrohml/rmaze.svg?branch=master)](http://travis-ci.org/pedrohml/rmaze)
[![Security](http://hakiri.io/github/pedrohml/rmaze/master.svg)](https://hakiri.io/github/pedrohml/rmaze/master)

#### Description
This simple library/tool generates 2D mazes with customizable dimensions.

#### Tool usage
The **rmaze** is in initial version and its simple to use

```
Usage: rmaze.rb [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 !

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmaze-1.5.0 README.md