VirtualTurtle/chega_in_unix
VirtualTurtle/Chosen__1
n1def turtle(cd):n1def turtle(ab):
2    res = yield c2    res = yield a
3    while True:3    while True:
4        if res == 'f':4        if res == 'f':
n5            c = list(c)n5            a = list(a)
6            if (d == 0):6            if (b == 0):
7                c[0] += 17                a[0] += 1
8            if (d == 1):8            if (b == 1):
9                c[1] += 19                a[1] += 1
10            if (d == 2):10            if (b == 2):
11                c[0] -= 111                a[0] -= 1
12            if (d == 3):12            if (b == 3):
13                c[1] -= 113                a[1] -= 1
14            c = tuple(c)14            a = tuple(a)
15        if res == 'l':15        if res == 'l':
n16            d = (d + 1) % 4n16            b = (b + 1) % 4
17        if res == 'r':17        if res == 'r':
t18            d = (d + 3) % 4t18            b = (b + 3) % 4
19        res = yield c19        res = yield a
20# robo = turtle((0,0),0)
21# start = next(robo)
22# for c in "flfrffrffr":
23#     print(*robo.send(c))
2420
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op