Exercise 1: Warming-Up

Warming-Up

Let's see a first example!

The next program places one red stone in the initial position and one black stone to the east.

program {
  Drop(Red)
  Move(East)
  Drop(Black)
}

Try writing and executing this program. We will show you the result when executing it on a 2x2 board and on a 3x2, both with the head placed initially in the origin.

Give me a hint!

Remember: inside the body of the program, operations are executed in order, from up to down.

It isn't always important, but in this case…

You must sign in before submitting your solutions

Oops, your solution didn't work

  • Check that your program does not have recursion or an infinite loop
  • Check that you have an internet connection
  • Wait a while and try again

We are processing you solution

Please press F5 if results are not displayed after a few seconds