Skip to content

NightSoma/house

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

House

A simple text-based role-playing game written in Python.

The Story

You find yourself in a mysterious, seemingly abandoned house. But you're not alone. Another person is lurking in the rooms, and it seems only one of you will make it out. Your goal is to explore the house, use whatever you can find to your advantage, and outwit your opponent to be the last one standing.

How to Play

Getting started is easy:

  1. Make sure you have Python 3.13 or higher installed.

  2. Clone this repository to your local machine.

  3. Open your terminal, navigate to the project directory, and run the game:

    python game.py
  4. Just follow the on-screen prompts to make your move. Good luck!

Gameplay Video

Click the thumbnail below to watch a short video of the gameplay:

House Gameplay Video

Gameplay Mechanics

The game is turn-based. On your turn, you'll be presented with a list of actions you can take. Here's a breakdown of what you can do:

  • Search Room: Each room might contain hidden items or even the other player. Searching is how you find them. Your success depends on your 'perception' skill.
  • Move to another room: Navigate between connected rooms to explore the house. Be careful, some rooms might have traps!
  • Pick up item: If you find an item, you can pick it up and add it to your inventory.
  • Attack: If you find the other player, you can attack them. The damage you deal depends on your base 'attack' stat, plus any items you might be wielding (like a pistol or a glass bottle).
  • Set Trap: If you have a rope, you can set a trap in the current room for the other player to stumble into.
  • Use Medkit: If you have a medkit, you can use it to restore your health completely.

Technical Details

This game was built with simplicity in mind, making it a a great example of a fast and fun prototype. Here are a few technical notes:

  • Pure Python: The game is written in standard Python 3.13 and doesn't require any external libraries.
  • Simple Data Structures: I intentionally used basic Python dictionaries and lists to model the game world, players, and items. This was a conscious choice to keep the code straightforward and allow for very rapid prototyping. While classes or more complex data structures could be used in a future version, this approach was perfect for getting the core game loop up and running quickly.

About

A simple, text-based role-playing game written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages