Langton's ant: Difference between revisions

m
→‎{{header|REXX}}: (hopefully) clarified what is displayed in the section header. -- ~~~~
(→‎{{header|Java}}: One line was out of order)
m (→‎{{header|REXX}}: (hopefully) clarified what is displayed in the section header. -- ~~~~)
Line 2,086:
 
=={{header|REXX}}==
This REXX program automatically justifies (or ''crops'') '''left''' and '''top justifies''' (to the screen) the ant's walk field.
<br>Or in other words, the REXX program only shows the pertinent part of the walk-field.
<lang rexx>/*REXX program implements Langton's ant and displays the path it walked.*/
parse arg dir . /*allow specification: ant facing*/