Mindmap
Algorithm Challenge
Inhalt der Mindmap
Algorithm Challenge
Challenge 1
- Arrays & Lists
- Map grid
- A 4x4 array, where the player starts on a random centre square
- Invetory
- An empty list of items
- Variables can be appended to the inventory list
- Map grid
- Variables
- Health points
- Equals to 3
- Loaction Names
- All unique
- Spawn Location
- One of the centre squres
- Health points
- Functions
- Selecting the player's spawn position
- randomly selects the spawning position, using the randint function
- Checking to see if the player can move in the desired direction
- Selecting the player's spawn position
- Inputs
- player launching the game
- Arrays & Lists
Challenge 2
- Functions
- Checking to see if the player health exceeds 5
- Cannot consume the bread if the player's health points is at 5
- Checking to see if the player health exceeds 5
- Inputs
- North
- minus 4 from location
- east
- ad 1 to location
- south
- add 4 to location
- West
- minus 1 from location
- Consume bread
- checks whether bread is in the inventory
- add 1 to hp, cant go over 5
- checks whether bread is in the inventory
- talk to baker
- Gain bread into the inventory
- North
- Variables
- Health points
- Set to 3, if it reaches 0, the player dies
- Location names
- Bakery
- Can find the baker npc
- Bakery
- Spawn Location
- Spawn in a set centre position
- Health points
- Arrays & Lists
- Inventory
- Map grid
- Iterations
- Checking the players position
- NPC's
- Baker
- Functions
Challenge 3
- Variables
- Dragon
- Dragon attack timer
- How long untile the dragon can attac the player
- Dragon hp
- How much damage does the player need to do in order to win
- Dragon pos
- Which map location will the dragon be on
- Set to a random location that isnt the player location (spawn) or the bakery
- Dragon attack timer
- Dragon
- Inputs
- Attack
- If the player is on a specified map location, they can attack, damaging what ever is on that location
- Attack
- Functions
- checking to see if the players hp is less than or equal to 0
- If yes, end the game and display a defeat message to the user
- checking to see if the dragon hp is less than or equal to 0
- If yes, end the game and display a victory message to the user
- checking to see if the players hp is less than or equal to 0
- Npcs
- Dragon
- Win by killing the dragon - attacking 3 times
- Baker
- Safe location, as the dragon cannot spawn at he bakery
- Dragon
- Iterations
- Every other second, the dragon attacks the player, minusing 1 hp from the user
- Variables
Informationen
- Beschreibung
- Mindmap am Algorithm Challenge, erstellt von Nazar Poplavskiy am 21/04/2022.
- Erstellt von
- Nazar Poplavskiy
- Aufrufe
- 0
- Bewertung