Langton's ant: Difference between revisions

Content deleted Content added
PureFox (talk | contribs)
Added Wren
Updated to compile with Nim 1.4
Line 5,703:
 
var i = 0
while i < maxSteps and x in 0 .. < width and y in 0 .. < height:
let turn = m[y][x] == black
m[y][x] = if m[y][x] == black: white else: black