¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Algorithm Challenges

Galen Li Inglés

Contenido del mapa

Algorithm Challenges

  1. Algorithm Challenge 1

    • Keywords to use
      • DECLARE
        • Declare variables
      • FUNCTION
        • Declare a function
      • SELECT
        • Select variables
      • OUTPUT
        • Display information for the player to see
    • To randomise location
      • Choose a number from the 4 centre squares randomly
        • 5
        • 6
        • 9
        • 10
    • Relevant Algorithm Constructs
      • Modularisation
        • Code clusters
      • Assignment
        • Assigns variables values
    • Possible variables
      • randomiseLocation
        • A randomised location
      • randomiseNumber
        • Number picked at random
  2. Algorithm Challenge 2

    • Keywords to use
      • DECLARE
        • Declare variables
      • FUNCTION
        • Declare a function
      • IF, ELSE
        • If a condition is met an action is done, else another action is done
      • TRUE, FALSE
        • Confirms/Denies
    • Relevant Algorithm Constructs
      • Assignment
        • Assigns variables values
      • Condition
        • An action taken in accordance to a condition
      • Modularisation
        • Code Clusters
      • Selection
        • Two choices are given
    • To eat bread
      • If a player inputs eat bread then run the code to eat bread
      • Bread will restore 1 player health and decrease one available bread
    • To obtain bread
      • Check if the player location is at the bakery
      • If a player inputs talk to baker then run the code to buy bread
    • Possible variable
      • Main variables
        • breadAmount
        • backpack
        • ItemName
        • Bread
        • playerHealth
      • Function variables
        • eatBread
        • checkBackpack
        • bakerBread
  3. Algorithm Challenge 3

    • Keywords to use
      • DECLARE
        • Declare variables
      • FUNCTION
        • Declare function
      • IF, ELSE
        • If a condition is met an action is done, else another action is done
      • SET
        • Set a variable to a certain property
      • OUTPUT
        • Display information for the player to see
    • Relevant Algorithm Construct
      • Assignment
        • Assigns variables values
      • Modularisation
        • Code cluster
      • Condition
        • An action taken in accordance to a condition
    • Attacking the dragon
      • Check the backpack for a sword, and the dragon will lose 1 health when there is a sword.
    • Possible Variables
      • Main variables
        • dragonHealth
        • sword
        • playerHealth
        • mapLocList
        • mapLoc
      • Function variables
        • attackDragon
        • deathMessage
        • dragonAttack
        • checkBackpack
    • Dragon attacking player
      • Once the player attacks, retaliate by attacking the player
  4. Required tools

    • A typing tool allowing indentation
      • Word Document
      • Notepad++
      • Sublime Text 3
    • Variables
      • randomiseLocation
      • randomiseNumber
    • Pseudo Code

Información

Descripción
Mapa Mental sobre Algorithm Challenges, creado por Galen Li el 20/02/2021.
Creado por
Galen Li
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?