Exercise 10: Stones 3

Stones 3

As you have realized, these boards are a bit magical, we can drop in a cell as many stones as we wish: 2, 4, 12, 50, 1000. There is no limit!

There is something really interesting that happens when programming: we can work with numbers as big as we wish.

Well, now it is your turn: write a program that drops four red stones and three black stones in the current cell.

Give me a hint!

Notice that we didn't tell you how is the board on which we will execute this program, or where the head is. And that is because…it doesn't matter!

If your program is well written, and solves the problem of dropping four red stones and three black stones in the current cell, it can work for any board.

Anyway, only once and as help, we will show you the board on which the program will be executed:

GBB/1.0 size 3 3 head 0 0

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