Zusammenfassung der Ressource
Algorithm Challenges
- Input
- Challenge 1
- Algorithm challenge 1 does not
require any user input other than
the starting of the program
- Challenge 2
- Algorithm challenge 2 consists of user inputs
that cause a certain function, these inputs are
particular strings that perform different actions
- Challenge 3
- Algorithm Challenge 3 uses user input in the form of
strings to alter the outcome of the circumstances that the
code runs through, such as where to hit the dragon
- Processing
- Challenge 1
- Algorithm Challenge 1 processes the variables
consisting of numbers to choose a random
integer that can be used for the map position
- Challenge 2
- Algorithm Challenge 2 uses variables to
proccess whether the user can do the
actions that they are inputting
- Challenge 3
- Algorithm Challenge 3 processes the users
inputs and returns the different outcomes
that the user inputs are based on
- output
- Challenge 1
- Algorithm Challenge 1 uses processing
to output a random variable that
outputs as the players starting location
- Challenge 2
- Algorithm Challenge 2 uses variables that
have been processed to output information
about the users items and statistics
- Challenge 3
- Algorithm Challenge 3 outputs variables
that have been changed depending on
how the user has interacted with the
puzzles that the dragon fight consists of
- algorithm constructs
- Challenge 1
- Algorithm Challenge 1 uses iteration to
repeatedly set the map location to a random
number and uses an if statement to control the
numbers that the variable will be finalised as
- Challenge 2
- Algorithm Challenge 2 uses multiple
instances of for and if statements to
check for variables and limit the output
to meet the current situation
- Challenge 3
- Algorithm Challenge 3 uses mostly if
statements to control the outputs depending
on the inputs of the user, iteration in the
form of a while loop is also used