4 ms·
This works too, at least on the site because the robots don't get too far apart: left left left left left left left r: right
by zuck9 11y ago
This works too, at least on the site because the robots don't get too far apart:
left
left
left
left
left
left
left
r: right
skipNext
goto r
- lucb1e 11y agoWith your code they end up right where they started? I see 'random locations' in the text above but the location is always the same here. Adding a couple of 'left's works, though, and is the same as my solution. Edit: randomize button. I see. It also makes this no solution because they could start anywhere.
- pbhjpbhj 11y agoI think they meant: left x 6 # but that should probably be 7? as maxRange in the randomize routine is 8. scan: skipNext right goto scan Which works but only because the unit test is deficient! That's as far as I got in 5 mins [but I'm not a coder].