Anonymous user
Langton's ant: Difference between revisions
→{{header|Python}}
(Python) |
|||
Line 274:
i = 0
while i < nsteps and
turn = Turn.left if M[y][x] == Color.black else Turn.right
M[y][x] = Color.white if M[y][x] == Color.black else Color.black
|