Jump to content

Knight's tour: Difference between revisions

m
→‎{{header|REXX}}: changed a comment in the REXX section header.
m (→‎{{header|Ada}}: corrected a typo.)
m (→‎{{header|REXX}}: changed a comment in the REXX section header.)
Line 4,198:
This REXX version is modeled after the XPL0 example.
 
The boardsizesize 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.*/
parse arg N sRank sFile . /*obtain optional arguments from the CL*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.