Skip to content

ArielOliveira/MazeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MazeGenerator

Maze Generator

Contents

About

  • A simple maze generation algorithm which outputs an image in PPM format based on a map randomly generated. The algorithm map is based on a cell grid and goes as follows:

    • 1 - Choose an inital cell in the grid and mark it as visited

    • 2 - While its stack is not empty

Execution

  • The executable takes 2 arguments from command line, one for the map size other for the cell size, always pick an square+1 (e.g: 32 + 1 = 33) number for the map size, otherwise the maze won't fit well in the boundaries. By default map size will be 32x32 and cell size 32.

    • Example: ./MazeGen 65 32

    This example generates a 64x64 map with a 32 size in pixels cell

Demo

  • 16x16 Maze

  • 32x32 Maze

  • 64x64 Maze

About

A Maze Generator implementation in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors