A python based text game. Explore different rooms while collecting items and completing challenges from characters!
The user can type the following commands:
go {direction}
: Go to a different room based on the specified directions.
look
: Gives the description of the room the user is in. Also provides the list of items in that room.
take {item}
: Take the item which is present in the room.
talk {character}
: Talk to the specified npcs.
inventory
: Returns the contents of the inventory.
unlock
: Unlocks the treasure box if conditions are met.
quit
: Ends the game.
The game has the following NPCs:
- Ghost: A translucent figure floats in front of you.
- Witch: A wicked witch stands before you.
- Knight: A brave knight in shining armor awaits your arrival
- Sorcerer: A mysterious sorcerer with a pointed hat stands here
The game has the following rooms:
- Hallway: You are in a dark and spooky hallway
- Kitchen: You are in a dusty old kitchen with cobwebs
- Pantry: You are in a small pantry filled with shelves
- Living Room: You are in a creepy living room with creaky furniture
- Library: You are in a dimly lit library filled with old books
- Bedroom: You are in a spooky bedroom with a large, unmade bed
- Basement: You are in a dimly lit basement with a musty smell
- Attic: You are in a dusty attic filled with old furniture and cobwebs
This is the path to the .png file which illustrates the layout of the haunted house:
Find the treasure box in one of the rooms. Score maximum points by completing challenges and collecting items.
- Fork the Repository
- Have a look at issues with hacktoberfest tag!
- Clone The Repository and move inside it
git clone https://github.com/IEEE-VIT/Haunted_House && cd Haunted_House
- Make and activate a virtual env.
- Install the requirements
pip install -r requirements.txt
- Open python terminal and download the following nltk packages
nltk.download('punkt')
nltk.download('stopwords')
nltk.download('wordnet')
- Create a new branch with your feature name
git branch <name>
- Commit your changes
- Push the changes to your fork!
git add .
git commit -m "Your feature description"
git push origin <your branch name>
- All set, Feel free to contribute and send a Pull Request
- Wait for your PR to be reviewed and merged
- For more info on how to contribute check out
CONTRIBUTING.md