Langton's ant: Difference between revisions

Content added Content deleted
Line 1,774: Line 1,774:
ant.outOfBounds =
ant.outOfBounds =
ptCur.x < 0 ||
ptCur.x < 0 ||
ptCur.x >= ant["width"] ||
ptCur.x >= ant.width ||
ptCur.y < 0 ||
ptCur.y < 0 ||
ptCur.y >= ant["height"]
ptCur.y >= ant.height
ant.position
ant.position
}
}