I uploaded here the solutions we came up with tonight:
In particular coming back home I wrote another version, more Python
and more customizable. Now you can pass another rule just by the
number and change the length of the rule.
So for example I might want 4 bits for the rule instead of 3, and I
just need to pass a different parameter to line, and then wrapping
around still magically works..
Not really heavily tested but here it is:
Anyway very interesting Dojo, well done to the organizers!
The only thing is that maybe the Law of Demeter could not really apply
to this task, where even exagerating there could not be more than two
objects (that's why in the example I shown I used classes).
0 · October 16, 2012