Anonymous user
Langton's ant: Difference between revisions
→{{header|Python}}
(→{{header|jq}}: output) |
|||
Line 3,415:
class Turn: left, right = False, True
class Color: white, black = '.', '#'
M = [[Color.white] * width for _ in
x = width // 2
Line 3,435:
i += 1
print ("\n".join("".join(row) for row in M))</lang>
The output is the same as the basic D version.
|