Langton's ant: Difference between revisions

Content added Content deleted
Line 1,483: Line 1,483:
</pre>
</pre>
=={{header|Java}}==
=={{header|Java}}==
{{incorrect|Java|The chirality of the output is reversed, meaning the ant is turning left when the spec says it should turn right, and vice-versa.}}
This implementation allows for sizes other than 100x100, marks the starting position with a green box (sometimes hard to see at smaller zoom levels and the box is smaller than the "pixels" so it doesn't cover up the color of the "pixel" it's in), and includes a "zoom factor" (<code>ZOOM</code>) in case the individual "pixels" are hard to see on your monitor.
This implementation allows for sizes other than 100x100, marks the starting position with a green box (sometimes hard to see at smaller zoom levels and the box is smaller than the "pixels" so it doesn't cover up the color of the "pixel" it's in), and includes a "zoom factor" (<code>ZOOM</code>) in case the individual "pixels" are hard to see on your monitor.
<lang java>import java.awt.Color;
<lang java>import java.awt.Color;