- Open the project in IntelliJ IDEA.
- Locate the
Main
class in the project structure. - Right-click on the
Main
class and select "Run 'Main'". - Follow the prompts in the IntelliJ console.
-
When prompted, choose the type of character:
- Enter
1
for Warrior - Enter
2
for Wizard
- Enter
-
Enter the character's name when prompted.
- The battle is 1 vs. 1 and occurs in rounds.
- Each round, characters attack each other.
- Detailed logs of the battle are displayed on the command line.
- In case of a tie (both characters die in the same round), the game restarts with the same characters until there is a clear winner.
- Characters can have two types: Wizard or Warrior.
- Initial HP values are randomly assigned:
- Warriors:
HP
between 100-200 - Wizards:
HP
between 50-100
- Warriors:
- Warriors have:
Stamina
: Random between 10-50Strength
: Random between 1-10
- Wizards have:
Mana
: Random between 10-50Intelligence
: Random between 1-50
-
Heavy Attack:
- Damage: Strength
- Stamina cost: 5
-
Weak Attack:
- Damage: Half of Strength
- Stamina cost: 1
-
No stamina for attacks:
- No damage inflicted
- Stamina recovery: 2
-
Fireball:
- Damage: Intelligence
- Mana cost: 5
-
Staff Hit:
- Damage: 2
- Mana cost: 1
-
Recovery:
- No damage inflicted
- Mana recovery: 2