Skip to main content

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

  1. install the module:
    pip install --no-cache-dir T-BAG
    
  2. Run the game:
    python -m T_BAG
    
  3. Uninstall so you can update it:
    pip uninstall T_BAG
    

Usage

  • Use the go command 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; 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 the look command, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t_bag-1.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t_bag-1.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file t_bag-1.1.1.tar.gz.

File metadata

  • Download URL: t_bag-1.1.1.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

Hashes for t_bag-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1df6d0baaee85d45b2da1997e5a1cbed8854e415580dfbc98da0c58967a87c70
MD5 f6e5eb74417535a8b3a261432b38eed9
BLAKE2b-256 1e34f9974959fa438c33abffc60dc6fd7b7a6a19232cc3799ce615e2ee70692b

See more details on using hashes here.

File details

Details for the file t_bag-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: t_bag-1.1.1-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

Hashes for t_bag-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5507d26c87945a2fc01af91b51e3da84c9ec882384ecb016f6f0b55d826c4187
MD5 830aa51496e43f24b5374e754b63d50b
BLAKE2b-256 02cf49ce06571806635c35c4e4c6f165182941b6d0dcdfb3e412f062d388ff6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page