Есин Никита Игоревич, 528 группа VirtualTurtle 8650
Воробьев Егор Александрович, 419/2 (КФ) VirtualTurtle 10097
n1def turtle(coord, dir):n1def turtle(coord, direction):
2    x, y = coord2    x, y = coord
3    while True:3    while True:
4        command = (yield (x, y))4        command = (yield (x, y))
5        if command == 'f':5        if command == 'f':
n6            if dir == 0:n6            if direction == 0:
7                x += 17                x += 1
n8            elif dir == 1:n8            elif direction == 1:
9                y += 19                y += 1
n10            elif dir == 2:n10            elif direction == 2:
11                x -= 111                x -= 1
n12            elif dir == 3:n12            elif direction == 3:
13                y -= 113                y -= 1
14        elif command == 'l':14        elif command == 'l':
n15            dir = (dir + 1) % 4n15            direction = (direction + 1) % 4
16        elif command == 'r':16        elif command == 'r':
t17            dir = (dir - 1) % 4t17            direction = (direction - 1) % 4
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op