Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function()
- for n=1,size do
- for m=1,size-1 do
- if not tryForwards() then return end
- end
- if n<size then
- local turn = (math.fmod(n,2) == 0) and turnLeft or turnRight
- turn()
- if not tryForwards() then return end
- turn()
- end
- end
- end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement