Skip to content

Argocyte/ASCIIMazeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCIIMazeGenerator

A grid based ASCII maze generator in C#

Example maze: ║╔═╗══╗╔══╦╗╔═══╗══╦════╦══╔═╦╗╔╗╔══╦═╔══╦╗╔════╗╔╗╔╦═╔══╗╔══╦═══════════╔╦══ ║╚╗╚═╗║║╔╗║║╚╗╔╗║╔╗╠══╔═╣╔═╩═║║║║╚═╗║╔╝╔╗║║║╔══╗║║║║╚═╩═╔╣╠═╔╣╔══╗╔═╗╔═╗╔╝╚═╗ ╚╗╚╗║║╠╝║║║╚╗║║║║║║║╔═╝║║╚╗╔╗║║║╚═╗╠═╝╔╝╚╝╚╝╠═╔╣║╚═╩╗║╔═╝║║╔╝║╚╗║║║║╚╩═╠╝╔═╗║ ╔╝╔╝╠╝║╔╣║║═╣║║╔╝║║╔╝╔╗╚╩═║║╚╝╚╝╔═╝║╔═╝╔╗╔═╗║╔╝║╚═╗╔╩╝╚═╦═╝╠══╗╚╣╚╝║╔═╗╚╗╚╗╚╣ ║╔╝║║╔╝║║║╚╗╚╝╚╣╔╣║║╔╝╚═══╝║╔═══╚╗═╦╝║╔╝║╚╗╚╝╚══╗╔╝║╔══╗║╔╗╚══║╔╝╔═╣║═╩╗║╔╝║║ ╚╝╔╣║║═╝║║║╚══╗║║║║║║║╔╦═╗╔╝╠══╦╗╚╗║║╠╝╔╩═║║╔╗╔╗╚╝╔╗╚═╗║║║╚══╦╝║╔╣║║╚═╗║║║═╩╣ ╔═╝║║╚══╝╚╩╗║╔╝╚╗║║╚╣╠╝╚╗║╚╗╚╗║║╚═╚╝║╚╗╚═╗║║║╚╝╠╦═╝╚╗╔╝╚═╝═╦═╝╔╝║║╚╩═╗║╚═╣╔╗║ ║╔═╝╚═╗═╦╗╔╩╝║╔═╚╝╚╗║╚╗║║╚╗╚╗╚╝╚═╗╔╦╝╔╝║╔╝║╠╩══║║╔═╗╚╣╔═══╗╚╦═╚═╗║╔╗═╣║║╔╝║╚╗ ║║╔╗╔╗║╔╝║╚╗╔╝╚═╦══║║═╬╝║╔╝║╚═══╗║║╚═╩═╝║╔╝╚╗╔╗║╔╩═║╔╝╚══╗║═╝╔═╗║╚╝╠╗║║║║╔╝║║ ║╚╝║║╚╝╠═══╣║╔╦═╣╔═╝╚╗║╔╝╚═╩╦══╔╝║║║╔╗╔═╝║╔═╝║║╚╩═╔╝║╔╗╔═╝╚══╩═║╚═╗║╚╗║╚╝╚╗║║ ╚═╗║╚╗╔╝╔═╗║║║║═╝╚╗╔╗╚═╣══╦═╝╔╗║═╣║║║║╚╗╔╝║═╗║╚══╗║╔╩╝║╚══╗╔══╔╩═╗╚╗╔╝║╔══╩╝║ ╔╗║║╔╝╚╗║═╣║╚╗╠═╗╔╝║╚═╗║╔╗╚══║║╚╗║╚╣║╚═╝║╔╝╔╣╚══╗╚╝║╔════╗║╠═╗║══╣╔╩╝╔╝║╔╗╔═╣ ║╚═╝║╔╗║╚╗╚══╝║║╚╝║╚╗║╚╝║╚═╗╔╝║╔╝╠═║╚═══╝╚╗║║═╦╗╚╗╔╝║╔╗╔╗╚╝╚═║╚═╗║║║╔╝╔╝║╠╝═╣ ║╔══╝║║║╔╣╔══╗║╚╦═╩═╣╠╗╔╝╔═╝╠╗╚╝╔╣╔╝╔═══╗╔╝║╚═╝╚╗║╚═║║╚╝╚╦═╗╔╩═╗╚╗║║╚═╩╗║║╔╗║ ╠╝╔╗╔╝║╔╣║╚═╗║╚╗╚═╔╗╚╝║║╔╝══╣╚╗═╣║║═╩═══╠╝╔╝╔═╔═╝╚══╝╠══╗╚╗╚╝╔═║╔╝║╠╗╔╗║║║║╚╗ ║╔╝╚╝║║║║╔╦╗║║╔╝╔╗║╚══╗║╠══╗╚╗╚╗║║╚══╗╔╗╚╗║╔╝╔╝════╗╔╝╔╗╠═╚═╗╚═╝╚╗╚╝║║╚╗╚═╝╔╝ ╚╝╔╗╔╩╝║║║║║║║╚╦╝╚╝══╦╝║║╔╗║═╝╔╝║╠══╔╝║║═╣║║╔╩════╗╠╝╔╝║║╔═╗║╔══╗╚══╣║═╩══╗╚╗ ╔═╣║╚═╗╠═╝╚╦╝║╔╝╔═╗╔╗╚╦╝╔╝║╚═╗║╔╝╚══╝═╣╚╗╚╝║║╔═══╗║╚═║╔╩═╝║╚╣╚╗║╚══╗║╚═══╗╚═╣ ║║╚═══╝╚╗╔╗╚═║╚═╚╗╚╝║═╝╔╝║╚═╗╚╝╚══╗══╦╝║╚╗╔╩╝╚╗╔═║╚╦═╝║╔╗╔╣╔╩═║╠═══║╚═╗║╔╝═╦╝ ╚╩═╗╔═╗═╝║╚═╗╠═╗╔╝═╗╚══╩═╣═╗╚╗════╩══╝╔╩═╝╚══╔╝╠╗║║║╔══╝║║╚╝╔╗║╚══╗╚═╗║║╚═╗╚═ ╔═╗║╚╗╚═╗╚╗╔╝╠═║╚══╩╗║╔═╗╚═╣╔╝╔════╗╔═╝╔╗╔╦╗╔╝║║╚╝╚╝║╔═╗║╔╗╔╝║║╔═╗╠╗║║╚╩═╗╚═╗ ║║║╚╗╠═╗╚═╝║═╝╔╣══╦═╠╝║║╚═╗║╚═╩═╔═╗║╚╗╔╝║║║║╚╗║╚╗═╦═╝╚╗║╚╝║╠╗╚╝║║╠╝╚╝║╔═╗╚╗║║ ║║╠═║║║╚╗══╣╔╗║╚══╣╔╝╔╝╚═╗║╚══╗╔╣═╩╝║╚╝╔╝║║║╔╝╚═╩╗╠══╗║╚╗╔╝║║══╣╠╝╔══╝╚═╚╦╩╝║ ╚╣╚═╝║║╔╝╔╗╚╝╚╝╔══╝╚╗╚══╗║║╔══║║║╔╗╔╩═╗║╔╝║║╠══╗═╣║╔╗╚═╗║║═╝╚═╗║╚═╚═╗╔╗╔╗║╔═╝ ║║╔══║║╚╗║╚═══╗║╔═══╝═╗╔╝╠╝╚══╣║╔╝║║╔╗║║╚═║║╚═╗╚╗╚═╝║╔═╝║╚═╗╔╗║╚═╦╦═╚╝║║╚╗║╔╗ ║║╚═╦╩╩═║║╔╗╔╗╚═╩═══╦═╝╚╗╚╗╔═╗║╚╝║╚╗║╚╝╚══╝╚═╗╚═║╔═╗║╚═╗╠══║║║╚═╗║╚═══╣╚╗║╚╝║ ║╚═╗║╔═╗╚╩╝╠╝╚═╦═╔╗╔╝╔╗╔╝║╚╝╔╝╚╗╔╣║║║╔╗╔╦═══╗╚═╗╠╝╔╝╚══╝╠══╝║╚═╗║╔═══╗╚╗║╚══╣ ║╔╗╚═╝╔╝╔═╗║╔╗═╝╔╝║║╔╝║║╔╩══╝╔═╩╝║║║║║╚╝╚══╗╠══║╚╗╚═╗═╦═╚═╗╔╩╗╔╝╚╩══╔╝╔╝╚╗║╔╝ ╠╝║╔╗╔╝═╩╗╚╗║╚═╗║║║╔╝╔╝║║══╦╗║╔╗═╩╝║║╚════╗║║╔╗║═╩══╚╗╠╗╔═╝║╔╝╚══╗╔═╝╔╝╔═╝╠╝║ ╚═╚╝╚╩═══╝═╩╝══╩╝╚╩╝═╩═╝╚══╝╚═╝╚═══╝╚═════╝╚═╝╚╩═════╝║╚╩═══╝════╩╝══╩═╝══╩═╝

Each character has a passageway with walls, with a potential for 4 passageways (Quite rare).

Works best in fonts that are uniform (8x8 for example).

Utilises the excelent SharPrompt, and Newtonsoft.json If you are unaware of what Sharprompt is, here is a link. It is an excelent interactive command line interface.

About

A grid based ASCII maze generator in C#

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages