Langton's ant: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: reverted striping blanks to separate REXX statements. -- ~~~~)
m (→‎{{header|REXX}}: added a comment in the section header about the REXX program's output justification of the ant's walk field. -- ~~~~)
Line 2,033: Line 2,033:


=={{header|REXX}}==
=={{header|REXX}}==
This REXX program automatically left and top justifies (to the screen) the ant's walk field.
<lang rexx>/*REXX program implements Langton's ant and displays the path it walked.*/
<lang rexx>/*REXX program implements Langton's ant and displays the path it walked.*/
parse arg dir . /*allow specification: ant facing*/
parse arg dir . /*allow specification: ant facing*/