Langton's ant: Difference between revisions

→‎{{header|Scala}}: Provide more details on incorrectness.
(→‎{{header|D}}: Fix chirality (turn was wrong direction))
(→‎{{header|Scala}}: Provide more details on incorrectness.)
Line 2,530:
 
=={{header|Scala}}==
{{incorrect|Scala|The chirality of the output is reversed, meaningbecause the antcode istoggles turningthe leftcolor whenof the specant's sayslocation it*after* shouldmoving turninstead right,of and*before* vice-versamoving.}}
<lang scala>class Langton(matrix:Array[Array[Char]], ant:Ant) {
import Langton._
1,480

edits