This write-up doesn&#x27;t explain how to program the device, but this page does
   <a href="http:&#x2F;&#x2F;docs.primotoys.com&#x2F;docs&#x2F;cubetto-manual.html#introduction" rel="nofollow">http:&#x2F;&#x2F;docs.primotoys.com&#x2F;docs&#x2F;cubetto-manual.html#introduct...</a><p>Basically, you program a sequence of commands FORWARD, LEFT, RIGHT. 
There is also a special command FUNCTION that executes a user-specified sequence of up to four commands.<p>Does it allow the FUNCTION command within the definition of the function? 
If it does, there&#x27;s a lot of non-trivial stuff with recursion to do<p>For instance, a stack overflow<p>commands = [FUNCTION]<p>function = [FUNCTION, FUNCTION]