GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Algorithm Challenge

Nazar Poplavskiy Englisch

Inhalt der Mindmap

Algorithm Challenge

  1. 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
    • Variables
      • Health points
        • Equals to 3
      • Loaction Names
        • All unique
      • Spawn Location
        • One of the centre squres
    • 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
    • Inputs
      • player launching the game
  2. 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
    • 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
      • talk to baker
        • Gain bread into the inventory
    • Variables
      • Health points
        • Set to 3, if it reaches 0, the player dies
      • Location names
        • Bakery
          • Can find the baker npc
      • Spawn Location
        • Spawn in a set centre position
    • Arrays & Lists
      • Inventory
      • Map grid
    • Iterations
      • Checking the players position
    • NPC's
      • Baker
  3. 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
    • Inputs
      • Attack
        • If the player is on a specified map location, they can attack, damaging what ever is on that location
    • 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
    • Npcs
      • Dragon
        • Win by killing the dragon - attacking 3 times
      • Baker
        • Safe location, as the dragon cannot spawn at he bakery
    • Iterations
      • Every other second, the dragon attacks the player, minusing 1 hp from the user

Informationen

Beschreibung
Mindmap am Algorithm Challenge, erstellt von Nazar Poplavskiy am 21/04/2022.
Erstellt von
Nazar Poplavskiy
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck