MazeGenerator
Recursive Backtracker Algorithim in C#
Install / Use
/learn @davidtaing/MazeGeneratorREADME
Maze-Generator
Recursive Backtracker Algorithm in C# This program was created for an assignment at school. I was tasked to create a DLL that could be of use in a gaming project.
How it works:
-
Choose a starting point in the field.
-
Randomly choose a wall at that point and carve a passage through to the adjacent cell, but only if the adjacent cell has not been visited yet. This becomes the new current cell.
-
If all adjacent cells have been visited, back up to the last cell that has uncarved walls and repeat.
-
The algorithm ends when the process has backed all the way up to the starting point.
Visit: http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking for more information.
In my implementation, the field is a 2d array containing "Cells" that contain boolean flags for each wall and if it has been visited.
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
