Skip to content

In the straightforward text-based game Maze Mayhem, the player must make their way through a maze populated by robots.

Notifications You must be signed in to change notification settings

xzebcex/Maze-Mayhem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Maze Mayhem

Description

In the straightforward text-based game Maze Mayhem, the player must make their way through a maze populated by robots. The player must deceive the robots into smashing into each other or dead robots in order to escape capture because they are designed to advance directly towards them despite being barred by barriers. The teleporter in the game enables speedy transitions between different labyrinth sections, but excessive use of it might drain the player's energy. After the player has either deceived every robot into crashing or has been captured by a robot, the game is over.

Table of Contents

  1. Installing and Running
  2. How to Use
  3. Add a License
  4. How to Contribute
  5. Additional points
  6. Conclusion

Installing and Running

  1. Clone the repository first.: Maze Mayhem
  2. Enter the project directory by typing cd maze mayhem.
  3. Run python3 maze mayhem.py to start the game.

How to Use

The game will invite you to hit Enter to start when you first launch it. You will see a board that represents the maze after the game has begun. A character is used to represent the player, while a character is used to represent the robots. A character serves as a representation of the walls. Enter one of the following instructions to move the player:

  1. ‘w’: raise the player.
  2. ‘S’: moves the player down
  3. ‘a’: moves the player left
  4. ‘d’: shift the player to the right.
  5. ‘t’: use the teleporter to move to a random location in the maze The game is ended if a robot catches the player. The player wins the game if all of the robots have collided or are dead.

Add a License

MIT License.

How to Contribute

You can send a pull request with your improvements if you wish to help with this project. Make sure your code adheres to the coding standards and style of the current codebase before sending a pull request. Moreover, be careful to properly test your modifications.

Additional points

  1. The game features constants that may be altered to alter the complexity of the game, such as the width and height of the labyrinth, the number of robots, dead robots, teleports, and walls, as well as the characters used to represent the player, robots, dead robots, and empty spaces.
  2. The game is written in Python and the game board is represented by a dictionary.
  3. A function in the game produces a fresh game board with random barriers, robots, and dead robots.

Conclusion

• Maze Mayhem is an entertaining and demanding game that will put your strategic thinking and reflexes to the test. The game is simple to customise, and you may alter the complexity to your liking. Have fun while playing the game!

About

In the straightforward text-based game Maze Mayhem, the player must make their way through a maze populated by robots.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages