Exercise 9: Stones 2

Stones 2

Something interesting of our boards is that in their cells, we can drop any number of stones of any color.

For example, if we have this board:

GBB/1.0 size 5 2 head 3 1

and we execute the following program:

program {
  Drop(Red)
  Drop(Red)
  Drop(Blue)
  Drop(Green)
  Drop(Red)
}

the head will insert in the current cell three red stones, a blue one and a green one.

Write this program in the editor and check how it appears in the board!

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