GoConqr has a new look! Let us know what you think.

Mind map

Forest of Lyrica Assessment Mindmap

Findlay Ingram English 5.0Average rating 5.0 out of 5 (1 rating)

Mind map on Forest of Lyrica assessment mindmap: algorithm challenge 1, algorithm challenge 2 and algorithm challenge 3

Mind map: Forest of Lyrica assessment mindmap

Map content

Forest of Lyrica Assessment Mindmap

  1. Algorithm Challenge 1

    • Player starts with backpack containing no items.
      • When game starts, create empty array called 'backpack' which the player can add items to.
    • Game map is a 4x4 grid.
      • Create an array with 16 elements containing unique locations the player can travel to
      • Make top row contain positions 0-3, 2nd row positions 4-7, 3rd row positions 8-11, and last row positions 12-15
    • Player randomly starts in centre 4 squares
      • Program chooses a random element from an array containing the index no. of the centre 4 squares
        • Console returns the description of the corresponding map location for the player.
    • Player starts with 3 health points.
      • Create an integer variable called 'health' and set to 3.
  2. Algorithm Challenge 2

    • Player inputs command
      • Player input: eat bread
        • Check if backpack contains bread
          • Backpack contains bread
            • Output: “You eat the bread.”
            • Actions: Remove bread from backpack and increase player’s health by 1 (if not already at full health).
          • No bread in backpack
            • Output: “You are not carrying the bread.”
            • Actions: none
      • Player input: talk to baker
        • Check if player in bakery's map location
          • Player in bakery map location
            • Output: “The baker gives you a loaf of bread.”
            • Actions: Add bread to backpack.
          • Player not in bakery map location
            • Output: “The baker is not here.”
            • Actions: None
  3. Algorithm Challenge 3

    • Game ends after player kills dragon.
    • Player input: attack dragon
      • If dragon not in player's location
        • Output: "the dragon is not here"
        • Actions: none
      • If dragon in player's location:
        • Output: "The dragon wakes up and you begin to fight."
        • Create variable containing dragon's health and set to 3.
        • Begin a loop until dragons health reaches 0.
          • Player inputs: 'use sword'
            • If sword in backpack
              • Output: 'you hit the dragon'
                • Output: dragons health
              • Action: Remove 1 from dragons health.
              • 75% chance of dragon attacking back.
                • If dragon attacks back
                  • Output: 'the dragon hit you back'
                  • Action: remove 1 from players health
                • If dragon doesn't attack back.
                  • Output: 'the dragon looks tired'
                  • Action: none
            • If sword not in backpack
              • Action: none
              • Output: you don't have that item.
          • Player inputs: 'eat bread'
            • If bread in backpack
              • Actions: Remove bread from backpack and increase player’s health by 1 (if not already at full health).
              • Output: 'you ate the bread'
            • If bread not in backpack
              • Action: none
              • Output: 'you have no bread'

Information

Description
f
Created by
Findlay Ingram
Views
59
Rating
Average rating 5.0 out of 5 (1 rating)

Feedback

What is it about?

What do you think of the new look?

How do you like it?