-
Introduction
In this section you will learn about the strategy we have followed to teach our students programming in a simple and fun way. Learning to code can be a motivating activity.
-
The DEMETER I language
In this section you will learn about the basic structures of our programming language. We call this set of instructions DEMETER I.
-
The DEMETER II language
In this section you will learn about the evolution of the initial DEMETER I instruction set. We will call the full language DEMETER II. In addition to having new instructions, the minefields have new elements that increase the difficulty.
A new sequential instruction
Since our rover is an antipersonnel mine detector and deactivator rover, the rover has been equipped with a new instruction (DEACT) that will deactivate the mine just in front of the rover.
A new sequential instruction
- DEACT Instruction
DEACT
Action: The rover will deactivate a mine in the square in front of it.
Here is an exercise that combines sequential instructions with iterative instructions and also uses the new sequential DEACT instruction:
The solution to this exercise will be the following one:
WHILE NB
DEACT
A
END
TL
FOR 12
DEACT
A
END
TR
A