Skip to content

Simulating a Dragon Ball-inspired martial arts tournament with elimination rounds, where fighters battle based on speed, attack, and defense attributes. Let the strongest win!

Notifications You must be signed in to change notification settings

Wolfremium13/kata-dragon-ball-tournament

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💫 Kata Dragon Ball Sparking! ZERO Tournament

Dragon Ball Sparking! ZERO

Challenge

The latest Dragon Ball video game is here! It's called Dragon Ball: Sparking! ZERO. Simulate a Martial Arts Tournament, in the purest style of the saga, where different fighters will participate, and the system will decide who the winner is using Test Driven Development (TDD).

🥋 Fighters

  • Name.
  • Three attributes: speed, attack, and defense (with values ranging from 0 to 100 that you will choose).
  • Each fighter starts a battle with 100 health.
  • The fighter could attack, defend, or dodge.
  • Damage is calculated by subtracting the defender's defense from the attacker's attack power.
  • The opponent always has a 20% chance to dodge the attack.
  • If the defense is higher than the attack, they receive only 10% of the attack damage.

🥊 Battle

  • The fighter with the highest speed starts attacking.
  • Each battle is between 2 fighters.
  • After each turn and attack, the opponent loses health.
  • The battle ends when a fighter loses all their health.

☀️ Tournament

  • A tournament is only valid if the number of fighters is a power of 2.
  • The tournament must create random pairs in each round.
  • Fighters face each other in elimination rounds.
  • The winner moves on to the next round until only one remains.
  • You must display in the console everything that happens in the tournament, as well as the final winner.

Reference at retosdeprogramacion.com/roadmap.

About

Simulating a Dragon Ball-inspired martial arts tournament with elimination rounds, where fighters battle based on speed, attack, and defense attributes. Let the strongest win!

Topics

Resources

Stars

Watchers

Forks

Languages