Suggestion: Add ability to share the code.
Suggestion: Add ability to share the code.
[0] https://gist.github.com/kanche/92c92c5e926ebc66da68
To watch them run around is so cool! Cool puzzle. Nicely created site. I am trying to give them a pendulum like swing instruction right now, make them dance :P
edit: had two unnecessary instruction in the gist (because each instruction takes same amount of time to execute), and, the robots disappointed me- they can't dance
The solution with a "speeding label" is the only solution I see. I also recognize the parallel with infinite loop detection now, like sugarcube commented already: https://news.ycombinator.com/item?id=10477109
(and even that could be done in two as well as I see now)
I guess my interview wouldn't go that well :)