Skip to main content

@wendy/ascii-maze

v2026.04.11.1

Generate ASCII mazes of arbitrary size using configurable algorithms (recursive backtracker, Prim's, hunt-and-kill, binary tree, sidewinder). Supports braiding, rectangular rooms, 8 wall styles, BFS solver, and output to the swamp log or a raw text file.

Labels

mazeasciigeneratorpuzzle

Contents

Quality score

How well-documented and verifiable this extension is.

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

Install

$ swamp extension pull @wendy/ascii-maze

Release Notes

5 algorithms (recursive-backtracker, Prim's, hunt-and-kill, binary-tree, sidewinder), 8 wall styles, BFS solver, braiding, rectangular rooms, and 5 methods: generate, render, solve, print, batch. Width/height up to 1000. All methods accept per-run overrides of globalArguments.

@wendy/ascii-mazev2026.04.11.1maze.ts
generateGenerate a new maze, store it as a resource, and print an ASCII preview to the log.
renderRe-render the stored maze. Use outputMode to control whether output goes
solveConvenience method: compute the BFS solution path if not already stored,
printGenerate and display a maze in one shot — no stored state.
batchGenerate and display multiple mazes in one shot. Generation parameters

Resources

maze(infinite)— Generated maze — cell grid, entrance/exit, optional solution path

Files

maze_text(text/plain)— ASCII text rendering of the maze