null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
36339276
Forest of Lyrica Assessment Mindmap
Description
f
No tags specified
a level
Mind Map by
Findlay Ingram
, updated more than 1 year ago
More
Less
Created by
Findlay Ingram
over 2 years ago
38
0
0
Resource summary
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.
Player starts with 3 health points.
Create an integer variable called 'health' and set to 3.
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
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
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 sword not in backpack
Action: none
Output: you don't have that item.
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'
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
Reducing the Impact of Earthquakes
siobhan.quirk
GRE Test - Overview
SAT Prep Group
German GCSE Vocab
naomisargent
CHEMISTRY C1 3
x_clairey_x
English Language Terms
ekimlauretta
GCSE REVISION TIMETABLE
TheJileyProducti
GCSE Computing : OCR Computing Course Revision
RoryOMoore
Unit 203 Revision: Installation Technology Question Bank No.1
Oliver Balay
1PR101 2.test - Část 8.
Nikola Truong
Core 1.3 Energy Generation, Storage and Use
T Andrews
Specific Topic 7.3 Timber selection
T Andrews
Browse Library