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

Mindmap

Algorithm Challenges

Tiny Jim Englisch

Inhalt der Mindmap

Algorithm Challenges

  1. 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
      • 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
          • User has no bread
            • output error message
    • Algorithm Constructs
      • Assignment
      • Condition
      • Iteration
  2. 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
        • 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
    • Algorithm Constructs
      • Assignment
      • iteration
      • modularisation
  3. 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
          • 16 map locations
          • 0,1,2,3 4,5,6,7 8,9,10,11 12,13,14,15
        • mapLoc variable
      • User has to start with 3 health points
        • health vairable
          • health = 3
    • Algorithm constructs
      • Assignment

Informationen

Beschreibung
Mindmap am Algorithm Challenges, erstellt von Tiny Jim am 05/03/2021.
Erstellt von
Tiny Jim
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck