Maze Game is a simple text-based game implemented in Go. It generates mazes using the Recursive Backtracking algorithm and lets players navigate through the maze to reach the gate (exit). The objective is to reach the gate before running out of time.
- Random maze generation using the Recursive Backtracking algorithm.
- Player navigation with arrow keys (up, down, left, right) or W, A, S, D keys.
- Difficulty levels: easy, medium, and hard.
- Timer to add a time-based challenge.
- Visually appealing ASCII characters to represent walls, the player, and the exit.
- Dynamic placement of the gate to make it as far as possible from the starting position.
To run this game, you need to have Go installed on your system. You can download and install Go from the official website.
-
Clone the repository to your local machine:
git clone https://github.com/abdullah-alaadine/maze-game.git
-
Navigate to the project directory:
cd maze-game
-
Build the game:
go build
-
Run the game:
./maze-game
- Use the arrow keys (up, down, left, right) or the W, A, S, D keys to move the player.
- Your objective is to reach the gate before the timer runs out.
- Different difficulty levels (easy, medium, hard) offer mazes of varying complexity.
Contributions are welcome! If you have any ideas, bug fixes, or improvements, please submit an issue or a pull request.