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. Clone the repository:
    git clone https://github.com/yourusername/T-BAG.git
    
  2. Navigate to the project directory:
    cd T-BAG
    
  3. Run the game:
    python T-BAG_main.py
    

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; 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


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.0.2.tar.gz (5.4 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.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for t_bag-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5c007720e675912db594188799b8340800ab53a35830e689801ced629a19bc09
MD5 7d3efb9408f23bd44aa4d45b76be00ff
BLAKE2b-256 ba278a3e8fc909e18c41f26d1d6a2f39ad8a47e34c7c3842434c4b0a94f06be5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: t_bag-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e33f6cecc8f25ce36c02393df0e3789efccb2e75c952173ac54654ac18961b
MD5 bdb88e561fcffb2f67bac791ac28ff7a
BLAKE2b-256 ea638bf5ef3caed61a7440f0d3997f5810e6044fe13573812cfd2e6f1288eada

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