Mindmap
Algorithm Challenges
Inhalt der Mindmap
Algorithm Challenges
Challenge 1
- Inputs
- User starts game
- Outputs
- Player spawns in a randomly selected location
- Player has no equipment and 3 health points
- Text output: "You spawned in (map location)"
- Player has no equipment and 3 health points
- Player spawns in a randomly selected location
- Inputs
Challenge 2
- Outputs
- (If bread isn't in backpack) Text output: "You are not carrying the bread."
- (While player is not in bakery map location) Text output: "The baker is not here."
- (If bread is in backpack) Text output: "You eat the bread."
- Restores 1 health if not at full health
- Removes bread from backpack
- Restores 1 health if not at full health
- (While player is in bakery map location) Text output: "The baker gives you a loaf of bread."
- Adds bread to backpack
- Inputs
- "Eat Bread"
- "Talk to Baker"
- "Eat Bread"
- "Talk to Baker"
- Outputs
Challenge 3
- Inputs
- "Attack dragon"
- "Attack dragon"
- Outputs
- (If sword in backpack) Text output: "You swung your sword at the dragon and damaged it!"
- Remove 1 health point from dragon
- (If dragon has 0 health) Text output: "You slayed the dragon!"
- (If dragon has more than 0 health) Text output: "The dragon breaths flame on you!"
- Remove 1 health point from player
- (If dragon has more than 0 health) Text output: "The dragon breaths flame on you!"
- (If dragon has 0 health) Text output: "You slayed the dragon!"
- (If sword isn't in backpack) Text output: "You have nothing to attack the dragon with."
- Remove 1 health point from player
- Text output: "The dragon gets angry and attacks you back."
- Remove 1 health point from player
- Inputs
Informationen
- Beschreibung
- Year 10 Digital Technologies Mindmap am Algorithm Challenges, erstellt von Mahiru S am 21/04/2022.
- Erstellt von
- Mahiru S
- Aufrufe
- 0
- Bewertung