Anonymous user
Langton's ant: Difference between revisions
m
→{{header|Perl 6}}: don't need to exclude x endpoint, already do with max - 2
m (→{{header|Perl 6}}: the vectors are also constant) |
m (→{{header|Perl 6}}: don't need to exclude x endpoint, already do with max - 2) |
||
Line 1,376:
}
say "Out of bounds after $moves moves at ($x, $y)";
for 0,2,4 ...
say join '', gather for 0,2,4 ... $size - 2 -> $y {
take @blocky[ 1 * @plane[$x][$y]
|