Skip to content

Leontos93/adventures-of-the-hero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python RPG Battle Simulator

A minimalist, text-based RPG battle simulator written in Python. This project demonstrates basic Object-Oriented Programming (OOP) principles by simulating a turn-based combat between a player-controlled hero and a randomly generated enemy.

πŸ“– About The Project

This is a simple command-line game where a hero fights against various monsters. The hero gains experience from victories, levels up, and becomes stronger. The difficulty of the enemies scales with the hero's level, providing a consistent challenge. The project is designed to be simple, clean, and easily extendable.

✨ Features

  • Object-Oriented Design: Uses a Character class for both the hero and enemies.
  • Turn-Based Combat: A classic battle loop where the hero and enemy take turns attacking.
  • Leveling System: The hero gains experience, levels up, and improves their stats (health and attack).
  • Dynamic Enemies: Enemies are randomly selected and their stats scale based on the player's level.
  • Simple & Extendable: The code is straightforward and easy to modify or expand upon.

πŸš€ Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

You need to have Python 3 installed on your system.

How to Run

  1. Clone the repository:

    git clone https://github.com/your-username/your-repository-name.git

    (Replace your-username/your-repository-name with your actual GitHub username and repository name)

  2. Navigate to the project directory:

    cd your-repository-name
  3. Run the script:

    python game.py

    (Assuming you named your file game.py)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages