Кочармин Михаил Дмитриевич, 527 группа VirtualTurtle 8701
Тишина Ульяна Кирилловна, 411 VirtualTurtle 9015
n1def turtle(coord, direction):n1def turtle(a, d):
2    x, y = coord2    x, y = a
3    while True:3    while True:
n4        cmd = (yield (x, y))n4        command = (yield (x, y))
5        if cmd == 'f':5        if command == 'f':
6            if direction == 0:6            if d == 0:
7                x += 17                x += 1
n8            elif direction == 1:n8            elif d == 1:
9                y += 19                y += 1
n10            elif direction == 2:n10            elif d == 2:
11                x -= 111                x -= 1
n12            elif direction == 3:n12            elif d == 3:
13                y -= 113                y -= 1
t14        elif cmd == 'l':t14        elif command == 'l':
15            direction = (direction + 1) % 415            d = (d + 1) % 4
16        elif cmd == 'r':16        elif command == 'r':
17            direction = (direction + 4 - 1) % 417            d = (d - 1 + 4) % 4
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op