Skip to content

figglewatts/mazegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mazegen

Maze generation in C for a uni project -- Was used for maze game in Embedded Systems module.

Implements a recursive backtracking maze generation algorithm.

Generates mazes like this:

#############################################
#.....#...............#.#.#.........#.......#
#.#.#####.#.#.#.#.###.#.#.#.###.#.###.###.###
#.#.....#.#.#.#.#.#...........#.#...#.#.#...#
###.#.#####.#########.#####.#####.#####.#.###
#.#.#.....#.#.#.#.#...#.#.#.#.#.....#.......#
#.###.#.#####.#.#.###.#.#.###.###.#####.###.#
#...#.#.....#.......#.......#.......#.#...#.#
###.###.#.###.###.###.###.#######.###.#.###.#
#.#...#.#...#...#...#.#...#.#.#.#.........#.#
#.#.#####.###.###.###.###.#.#.#.###.#######.#
#...#.......#...#...#.#...........#.#.#.#.#.#
#.#####.#.###.###.#########.###.#####.#.#.###
#.#.#...#.#.#...#...#.#.#...#.....#.......#.#
#.#.###.###.#.###.###.#.#######.#####.###.#.#
#...#...........#.........#.#...#.....#.....#
###.###.#.#.#.###.#.#.#.###.###.###.#.#####.#
#.#.#.#.#.#.#.#.#.#.#.#.......#.#...#...#.#.#
#.#.#.#########.#######.#.#.###.###.#####.#.#
#.....#.#.............#.#.#...#.......#.....#
#.#####.###.###.###.#.#####.#######.#####.###
#.#.#.......#.....#.#...#.......#.....#.#...#
#.#.###.#.#####.#####.#.###.#.#####.###.#.###
#.......#.#.#.#...#.#.#...#.#...#...#.#.....#
#.#########.#.#.###.###.#####.#######.#.###.#
#.#.#.#.#.........#.#...#.......#.#.#.....#.#
###.#.#.###.###.###.###.###.#.###.#.#.#####.#
#.#.......#.#.#.#.......#...#.#.#.......#...#
#.#.###.###.#.#####.#######.###.#.#########.#
#.....#...#...#.#...#.#.......#...#.#.#.....#
#.#####.#####.#.#####.###.#.#####.#.#.###.#.#
#.#.#.......#.....#.......#.#.#.........#.#.#
#.#.#####.#####.#####.#.#.###.###.###.###.###
#...#.#.#.....#.#.....#.#.#.......#.#...#...#
###.#.#.###.###.###.#.#######.#.###.#.#######
#.........#...#.#...#.#...#...#.#.....#.#.#.#
###.###.###.###.###.#####.###.#####.###.#.#.#
#...#...#.#.....#.......#.......#...#.......#
###.###.#.###.#####.#.#####.#.#.###.###.###.#
#...#.......#.....#.#...#.#.#.#.#.......#...#
#.#.#####.###########.###.#################.#
#.#.#.#...#.#.#.#...........#.#.#.#.#.#.#.#.#
#.###.###.#.#.#.###.#.#.#.###.#.#.#.#.#.#.#.#
#.....#.............#.#.#...................#
#############################################

Implementation based on this article with stack implementation from this article.

About

Maze generation in C for a uni project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published