Anonymous user
Langton's ant: Difference between revisions
Updated to compile with Nim 1.4
(Added Wren) |
(Updated to compile with Nim 1.4) |
||
Line 5,703:
var i = 0
while i < maxSteps and x in 0 ..
let turn = m[y][x] == black
m[y][x] = if m[y][x] == black: white else: black
|