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
Usage
- Use the
gocommand to move to a different room. For example:go east - Use the get command to pick up an item. For example:
get key - Use the quit command 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; otherwise, show all commands.
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
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.0.3.tar.gz.
File metadata
- Download URL: t_bag-1.0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a5871fa934d2e24e8fbf1cb83bf6c789570896698059f218b4e4361a7b9ca17
|
|
| MD5 |
c06d8d5fd3ec97e7fff71306e306e7ab
|
|
| BLAKE2b-256 |
bc64641a34b5a32576cfe5c9712efdb0c0dc59031a621b7c4e7791e2ac9fa7a3
|
File details
Details for the file t_bag-1.0.3-py3-none-any.whl.
File metadata
- Download URL: t_bag-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 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 |
4f93cbbdf783c40677bd257c0034761648efcd37a53aa7a172f60fa662a59492
|
|
| MD5 |
d967aa7e440e03cc135fc81237b9ca1c
|
|
| BLAKE2b-256 |
a69775e2672a0aa4b067a8db6c8b93c74f6ba8077a96d9b7f9bb174f0c54dd46
|