1.11. Dragon Sprint 9
Name: Dragon Sprint 9
Difficulty: hard
Lines: ?
Minutes: 34
1.11.1. Functional Requirements
A hero can belong to a team consisting of a maximum of 6 characters
Mage: hit points: 10-20, gold: 20-40, damage: 1-4
Priest: hit points: 30-40, gold: 30-40, damage: 1-6
Hunter: hit points: 40-50, gold: 10-40, damage: 1-8
Warrior: hit points: 10-50, gold: 10-20, damage: 1-12
Rogue: hit points: 20-30, gold: 0-50, damage: 1-6
Druid: hit points: 30-40, gold: 0, damage: 1-6
1.11.2. Use Case
Create dragon with name "Wawelski"
Set Dragon's initial position to x=50, y=100
Set new position to x=10, y=20
Get current position
Move dragon left by 10 and down by 20
Move dragon left by 10 and right by 15
Move dragon right by 15 and up by 5
Move dragon down by 5
Dragon makes damage (random 5-20)
Dragon takes 10 damage
Dragon takes 20 damage
Dragon takes 30 damage
Dragon takes 40 damage
Dragon takes 50 damage
1.11.3. Non-Functional Requirements
Commit and push the current state of the repository
Modify the game code from the previous version of the task
Save the code to solve the task in the
dragon
directoryWhen finished, add all files from
dragon
to the repositoryCommit and push changes to a central repository (Github)