Knight's tour: Difference between revisions

Content added Content deleted
m (→‎{{header|Ada}}: corrected a typo.)
m (→‎{{header|REXX}}: changed a comment in the REXX section header.)
Line 4,198: Line 4,198:
This REXX version is modeled after the XPL0 example.
This REXX version is modeled after the XPL0 example.


The boardsize may be specified as well as the knight's starting position.
The size of the chessboard may be specified as well as the knight's starting position.
<lang rexx>/*REXX program solves the knight's tour problem for a (general) NxN chessboard.*/
<lang rexx>/*REXX program solves the knight's tour problem for a (general) NxN chessboard.*/
parse arg N sRank sFile . /*obtain optional arguments from the CL*/
parse arg N sRank sFile . /*obtain optional arguments from the CL*/