Scenario 6 - Variables

Operational Goals

  • Understanding the construction of variables and the ability to define and use them in code

Introduction to the Topic

A variable block is a kind of "box" in which we can store a value, and then refer to it in the code when we need it.

Task

Command: Arrange the code from blocks, set the appropriate step values, and lead Kodi to the finish. Remember to apply the variable block "a" to determine the number of steps that Kodi must take.

Course I, Variables - Level 0 - Introduction to variables. Navigating using variables as a counter

Course I, Variables - Level 0 - Board solution

Task

Command: Arrange the code from blocks, set the appropriate step values, and lead Kodi to the finish. To open passages, the Elf on the board must first press the appropriate button and break the rocks blocking the way. Arrange a sequence containing instructions to be executed by each character. Also remember to apply variable blocks.

Course III, Variables - Level 0 - Repetition of the concept of variables.

Course III, Variables - Level 0 - Board solution