Text-Based Adventure Game source code.
Project description
T-BAG (Text-Based Adventure Game)
T-BAG is a text-based RPG game where the player navigates through different rooms, collects items, and avoids monsters to reach the garden and win the game.
Description
In this game, you start in a hall and must navigate through different rooms, collecting items and avoiding monsters. Your goal is to reach the garden with the key and a potion to win the game.
Installation
- install the module:
pip install --no-cache-dir T-BAG
- Run the game:
python -m T_BAG
- Uninstall so you can update it:
pip uninstall T_BAG
Usage
- Use the
gocommand to move to a different room. For example:go east - Use the
getcommand to pick up an item. For example:get key - Use the
quitcommand to exit the game. For example:quit 5
Commands
go [direction]: Move to a different room.get [item]: Pick up an item from the room.quit [seconds]: Quit the game after waiting for the specified number of seconds.help [number]: Show the list of commands. If a number is provided, show that many commands; put 0 to print all the commands.drop [item]: Drop an item into the room you are in.look [anything]: Look around the room you are currently in. You can enter anything after thelookcommand, but you must enter something, because of how I handle commands
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes. The rules for contributing are here.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file t_bag-1.1.3.tar.gz.
File metadata
- Download URL: t_bag-1.1.3.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bccab6b458548ccc088e57426625d0a15ffc02f2d7a445dc162e9019e7cfbbaa
|
|
| MD5 |
28f0729f789e3da523d3610cd0ac2db2
|
|
| BLAKE2b-256 |
3404423634cc82fbe4f9128f3877a654c50d1aac3e6bd476263ce7df52ce39d2
|
File details
Details for the file t_bag-1.1.3-py3-none-any.whl.
File metadata
- Download URL: t_bag-1.1.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccfefbbe98b026ec639eb449909b5e5c41eade3735c65cc36309e93f0bf38709
|
|
| MD5 |
b06acaa2939b586647c22ec8822f7f9f
|
|
| BLAKE2b-256 |
6b6b6c3f49b4811f0c947c7933356e5c52564d29d2f68e50f1be898f9f8047db
|