Mindmap
Algorithm Challenges
Inhalt der Mindmap
Algorithm Challenges
Algorithm challenge 2
- Prescribed criteria
- Baker gives a loaf of bread to user if in right place
- mapLoc variable
- Baker is at mapLoc 3
- If not at bakery
- error message if user tries to input something
- If at bakery
- user gets bread
- add one to bread
- user gets bread
- If not at bakery
- Baker is at mapLoc 3
- mapLoc variable
- When user eats bread one health is restored. maximum of 5 health
- Bread variable
- user inputs "eat bread"
- user has bread
- add 1 to health
- unless health is 5
- take 1 from Bread
- add 1 to health
- User has no bread
- output error message
- user has bread
- Baker gives a loaf of bread to user if in right place
- Algorithm Constructs
- Assignment
- Condition
- Iteration
- Prescribed criteria
Algorithm challenge 3
- Prescribed Criteria
- Make an iterative combat system
- variables
- health
- equals 3
- dragon health
- equals 5
- hitchance
- equal random integer between 1 - 4
- health
- combat system
- combat function
- 25% chance to miss the dragon when atacking
- player and dragon take turns attacking
- when player misses the dragon the dragon will still hit back
- Dragon and player both do 1 damage each
- once dragonhealth or health equals 0 you win or lose
- combat function
- variables
- Make an iterative combat system
- Algorithm Constructs
- Assignment
- iteration
- modularisation
- Prescribed Criteria
Algorithm Challenge 1
- Prescribed criteria
- User starts on one of the four middle squares on a 4x4 map
- 4x4 map
- start at middle 4 squares
- randon interger
- 5,6,9,10
- randon interger
- 16 map locations
- 0,1,2,3 4,5,6,7 8,9,10,11 12,13,14,15
- start at middle 4 squares
- mapLoc variable
- 4x4 map
- User has to start with 3 health points
- health vairable
- health = 3
- health vairable
- User starts on one of the four middle squares on a 4x4 map
- Algorithm constructs
- Assignment
- Prescribed criteria
Informationen
- Beschreibung
- Mindmap am Algorithm Challenges, erstellt von Tiny Jim am 05/03/2021.
- Erstellt von
- Tiny Jim
- Aufrufe
- 0
- Bewertung