Can you code 1/1/2/2/3/3


#1

Hi everyone,

Can you code 1/1/2/2/3/3 ?
excatly B.R.BB.RR.BBB.RRR
or in the presentation of the book Required output : RRR.BBB.RR.BB.R.B.
(with the real box - no new pieces)
I think it’s a good level 4.

Enjoy.


#2

I stumbled across a solution to this by accident while playing around (and partially inspired by my solution to challenge #38).

Screenshot%20from%202019-09-04%2014-20-15

If you start with 12 marbles you’ll get the following output:

RRR.BBB.RR.BB.R.B

It actually generates an infinite sequence with a period of 16.

RR.BB.RRR.BBB.RR.BB.R.B

Screenshot%20from%202019-09-04%2014-19-52