RustbeginnercliAI generated

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

  1. 01

    Model the maze grid

    ~1.5h

    Represent the maze as a 2D grid of cells, each tracking which walls are open or closed.

  2. 02

    Implement recursive backtracking generation

    ~2.5h

    Implement the recursive backtracking algorithm to carve passages through the grid using the rand crate for random direction choice.

  3. 03

    Render the maze as ASCII art

    ~1.5h

    Write a function that prints the grid to the terminal using characters for walls, passages, and start/end points.

  4. 04

    Add size and seed CLI options

    ~1h

    Let users specify maze dimensions and an optional random seed for reproducible mazes.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~6.5h · 4 steps

Tech stack

rand