Skip to content

myke-oliveira/game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Introduction

This Python program simulates a simple text-based RPG battle between a hero and an enemy. The program includes classes to define characters, including their attributes and actions, and a game class to manage the battle sequence.

Features

Character Creation: Define characters with names, life points, and levels. Hero and Enemy Classes: Specialized classes for heroes and enemies with unique attributes and abilities. Battle Management: A game class to handle turn-based combat between the hero and the enemy. User Interaction: Command-line inputs to perform actions during the battle. Installation Ensure you have Python 3 installed on your system. Download the jogo.py file to your local machine.

Usage

To run the game, execute the following command in your terminal:

python game.py

Example

Upon running the program, you will be prompted to start the battle. You can choose between a normal attack or a special attack for your hero. The battle continues until either the hero or the enemy is defeated.

Conclusion

This program provides a basic framework for a text-based RPG battle system. It can be extended with more features such as additional character types, more complex battle mechanics, and enhanced user interactions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages