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