Казаринов Андрей Вячеславович, 620 группа VirtualTurtle 8694
Воробьев Егор Александрович, 419/2 (КФ) VirtualTurtle 10097
f1def turtle(coord, direction):f1def turtle(coord, direction):
2    x, y = coord2    x, y = coord
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 direction == 0:
7                x += 17                x += 1
8            elif direction == 1:8            elif direction == 1:
9                y += 19                y += 1
10            elif direction == 2:10            elif direction == 2:
11                x -= 111                x -= 1
12            elif direction == 3:12            elif direction == 3:
13                y -= 113                y -= 1
n14        elif cmd == 'l':n14        elif command == 'l':
15            direction = (direction + 1) % 415            direction = (direction + 1) % 4
t16        elif cmd == 'r':t16        elif command == 'r':
17            direction = (direction - 1) % 417            direction = (direction - 1) % 4
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op