Great! You have already understood how to move the board head using the operation Move and the directions (South, West, etc). Let's go a step further: the stones.
In any cell of our board we can drop stones
. They have different colors:
For example, this is a board with a red stone and a black stone:
Apart from moving, the head also can drop stones in the current cell. For that, we have the operation Drop
, which orders the head to insert a stone of the given color.
program {
Drop(Red)
}
Try this program! Write the code in the editor, submit it and you will see what happens when executing it on this board:
You must sign in before submitting your solutions