Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lnvaldez/maze-solver

Generates a random maze and solves it using recursive backtracking. The maze generation utilizes Depth-First Search (DFS) to carve out passages and create a unique maze layout for each run.
https://github.com/lnvaldez/maze-solver

backtracking backtracking-algorithm cpp maze maze-algorithms maze-generator maze-solver mazes mazesolver random random-generation recursive

Last synced: about 1 month ago
JSON representation

Generates a random maze and solves it using recursive backtracking. The maze generation utilizes Depth-First Search (DFS) to carve out passages and create a unique maze layout for each run.

Awesome Lists containing this project

README

        

# 📝 Maze Solver

This project generates a random maze and solves it using recursive backtracking. The maze generation utilizes Depth-First Search (DFS) to carve out passages and create unique maze layouts for each run.

## ✏️ Features

- Uses DFS to generate a maze
- Random path carving to enhance maze complexity
- Maze generation visualization
- Recursive bactracking to solve the maze
- Interactive play mode

## 🧑🏽‍💻 How to Run

### Prerequisites

- Make sure you have a C++ compiler installed, like g++.
- The code is designed to run on Unix-like systems (Linux or macOS) due to the use of ANSI escape codes for terminal control. Windows might require a terminal that supports ANSI codes.

### Compile and Run

```bash
$ git clone [email protected]:lnvaldez/maze-solver.git
$ cd maze-solver
$ g++ maze.cpp -o out
$ ./out
```

🤝 Contributing 🤝

- Feel free to [Fork](https://github.com/lnvaldez/maze-solver/fork) this repository, create a feature branch and submit a pull request