Mind map
Algorithm 3
Map content
Algorithm 3
Criteria
- Add dragon
- Functions
- Dragon should attack
- Lose health points
- Arrays for dragon health or variables
- Dragon should have health points
- Should be able to hit dragon
- Hitting the dragon or missing could be randomized or in a pattern
- Lose health points
- Sword in a backpack
- Add dragon
Types of variables
- Local
- Global
- Player map location
- Dragon map location
- Player health
Algorithm types
- Assignment for variables like playerhealth
- Modularisation for functions like Dragonattack
- Repetiton for checking if the player is at the dragon
- Selection to check if dragon is dead
Ideas
- could have a dodge fuction that activates when the user inputs within a time limit
Information
- Description
- Mind Map on Algorithm 3, created by Hayden Lai on 26/02/2020.
- Created by
- Hayden Lai
- Views
- 0
- Rating