ASCII Maze Generator
Build a command-line program that procedurally generates a random maze using a recursive backtracking algorithm and renders it as ASCII art in the terminal. Learners practice recursive/iterative algorithms, 2D grid data structures, and randomness with the rand crate.
- Estimate
- ~6.5h
- Steps
- 4
- Completed by
- 0
- Proposed by
- codeseed.app
rand
Project roadmap
- 01
Model the maze grid
~1.5hRepresent the maze as a 2D grid of cells, each tracking which walls are open or closed.
- 02
Implement recursive backtracking generation
~2.5hImplement the recursive backtracking algorithm to carve passages through the grid using the rand crate for random direction choice.
- 03
Render the maze as ASCII art
~1.5hWrite a function that prints the grid to the terminal using characters for walls, passages, and start/end points.
- 04
Add size and seed CLI options
~1hLet users specify maze dimensions and an optional random seed for reproducible mazes.
Resources
- DocsThe Rust Book
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack