1.5. Dragon Sprint 3
Name: Dragon Sprint 3
Difficulty: easy
Lines: ?
Minutes: 13
1.5.1. Functional Requirements
Dragon can move in any direction by specified value
Assume left-top screen corner as an initial coordinates position:
Going right add to
x
Going left subtract from
x
Going up subtract from
y
Going down add to
y
1.5.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
1.5.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)
1.5.4. Hints
It is not a mistake: 'left by 10 and right by 15'
End position should be: x=20, y=40