Mapa mental
Algorithm Challenges
Conteúdo do mapa
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
Informações
- Descrição
- Year 10 Digital Technologies Mapa Mental sobre Algorithm Challenges, criado por Mahiru S em 21-04-2022.
- Criado por
- Mahiru S
- Visualizações
- 0
- Avaliação