Skip to content

lorenzo-ferrari/laby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Laby

Description

Laby is a maze generator written in c++. It uses a recursive approach to randomly build a tree on a rowsxcols grid, where rows and cols are both input parameters.

Example:

$ ./laby
Enter number of rows: 10
Enter number of columns: 20
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|   |                                   |               |                       |
+   +---+---+---+   +---+---+   +---+   +---+   +---+   +---+---+   +---+---+   +
|   |           |   |           |       |       |       |       |   |           |
+   +   +---+   +---+   +---+---+   +---+   +---+   +---+   +   +---+   +---+   +
|       |   |       |           |           |               |       |   |       |
+---+---+   +---+   +---+---+   +---+---+---+   +---+---+---+---+   +   +---+---+
|       |       |           |           |       |           |       |           |
+   +---+   +   +---+---+   +---+---+   +---+---+   +---+   +   +---+---+---+   +
|           |           |           |   |               |   |           |       |
+   +---+---+---+---+   +---+---+   +   +   +---+---+---+   +---+---+   +   +---+
|   |               |               |       |           |   |       |   |       |
+   +   +---+---+   +---+---+---+---+   +---+   +---+   +   +   +   +   +   +   +
|   |           |                   |   |       |   |       |   |       |   |   |
+   +---+---+---+   +---+---+---+   +---+   +---+   +---+---+   +---+---+   +   +
|               |       |       |   |       |               |           |   |   |
+---+---+---+   +---+   +   +   +   +   +---+   +---+---+   +---+---+   +   +   +
|           |   |       |   |   |   |   |       |       |           |   |   |   |
+   +---+---+   +   +---+   +   +   +   +   +---+   +   +---+---+   +   +---+   +
|                   |       |           |           |           |               |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

About

C++ labyrinth generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages