Федор Попко, 405 группа VirtualTurtle 8911
Воробьев Егор Александрович, 419/2 (КФ) VirtualTurtle 10097
t1def turtle(coord, direction):t1def 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':
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
14        elif command == 'l':14        elif command == 'l':
15            direction = (direction + 1) % 415            direction = (direction + 1) % 4
16        elif command == 'r':16        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