Mind map
Forest of Lyrica Assessment Mindmap

Mind map: Forest of Lyrica assessment mindmap
Map content
Forest of Lyrica Assessment Mindmap
Algorithm Challenge 1
- Player starts with backpack containing no items.
- When game starts, create empty array called 'backpack' which the player can add items to.
- Game map is a 4x4 grid.
- Create an array with 16 elements containing unique locations the player can travel to
- Make top row contain positions 0-3, 2nd row positions 4-7, 3rd row positions 8-11, and last row positions 12-15
- Player randomly starts in centre 4 squares
- Program chooses a random element from an array containing the index no. of the centre 4 squares
- Console returns the description of the corresponding map location for the player.
- Program chooses a random element from an array containing the index no. of the centre 4 squares
- Player starts with 3 health points.
- Create an integer variable called 'health' and set to 3.
- Player starts with backpack containing no items.
Algorithm Challenge 2
- Player inputs command
- Player input: eat bread
- Check if backpack contains bread
- Backpack contains bread
- Output: “You eat the bread.”
- Actions: Remove bread from backpack and increase player’s health by 1 (if not already at full health).
- No bread in backpack
- Output: “You are not carrying the bread.”
- Actions: none
- Backpack contains bread
- Check if backpack contains bread
- Player input: talk to baker
- Check if player in bakery's map location
- Player in bakery map location
- Output: “The baker gives you a loaf of bread.”
- Actions: Add bread to backpack.
- Player not in bakery map location
- Output: “The baker is not here.”
- Actions: None
- Player in bakery map location
- Check if player in bakery's map location
- Player input: eat bread
- Player inputs command
Algorithm Challenge 3
- Game ends after player kills dragon.
- Player input: attack dragon
- If dragon not in player's location
- Output: "the dragon is not here"
- Actions: none
- If dragon in player's location:
- Output: "The dragon wakes up and you begin to fight."
- Create variable containing dragon's health and set to 3.
- Begin a loop until dragons health reaches 0.
- Player inputs: 'use sword'
- If sword in backpack
- Output: 'you hit the dragon'
- Output: dragons health
- Action: Remove 1 from dragons health.
- 75% chance of dragon attacking back.
- If dragon attacks back
- Output: 'the dragon hit you back'
- Action: remove 1 from players health
- If dragon doesn't attack back.
- Output: 'the dragon looks tired'
- Action: none
- If dragon attacks back
- Output: 'you hit the dragon'
- If sword not in backpack
- Action: none
- Output: you don't have that item.
- If sword in backpack
- Player inputs: 'eat bread'
- If bread in backpack
- Actions: Remove bread from backpack and increase player’s health by 1 (if not already at full health).
- Output: 'you ate the bread'
- If bread not in backpack
- Action: none
- Output: 'you have no bread'
- If bread in backpack
- Player inputs: 'use sword'
- If dragon not in player's location