Skip to content

This is a simple text adventure game in Python. The game uses global variables, functions, if-else statements, and input-output methods to create a story of escaping from a prison. The game has rooms, items, score, and level. The player can interact with the game by entering commands and making choices.

Notifications You must be signed in to change notification settings

Kaos599/Text_Adventure_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Text Adventure Game

This is a simple text adventure game written in Python. The game involves escaping from a prison by exploring different rooms, finding items, and making choices.

How to play

To play the game, you need to have Python installed on your computer. You can download Python from https://www.python.org/downloads/.

To run the game, open a terminal or command prompt and navigate to the folder where you saved the file AdventureGame.py. Then type python AdventureGame.py and press enter.

The game will start with a welcome message and ask for your name. Then it will print the description of the first room and ask you what you want to do.

You can enter commands such as go east, take key, or go south to interact with the game. The game will respond with the outcome of your action and the description of the next room.

The game will end when you either escape from the prison or die.

How to modify

You can modify the game by changing the code in the file AdventureGame.py. You can change the rooms, items, descriptions, choices, and logic of the game as you wish.

For example, you can add more rooms or items by defining them as strings or dictionaries. You can change the descriptions or choices by editing the print statements or input statements. You can change the logic of the game by adding or modifying the if-else statements or functions.

Have fun playing and modifying the game!

About

This is a simple text adventure game in Python. The game uses global variables, functions, if-else statements, and input-output methods to create a story of escaping from a prison. The game has rooms, items, score, and level. The player can interact with the game by entering commands and making choices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages