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 |
ptCur.x >= ant.width || |
||
ptCur.y < 0 || |
ptCur.y < 0 || |
||
ptCur.y >= ant |
ptCur.y >= ant.height |
||
ant.position |
ant.position |
||
} |
} |