16 puzzle game: Difference between revisions

Content added Content deleted
(added the REXX computer programming language.)
m (→‎{{header|REXX}}: added comments to the REXX section header.)
Line 15: Line 15:


=={{header|REXX}}==
=={{header|REXX}}==
This REXX version allows the user to choose the grid size for the   '''16'''   game (puzzle), as well as the difficulity of the puzzle.
<br>The user's responses may have optional whitespace in the answer, and the answer can be in any case (lower or uppercase).
<br>Not all errors are checked for to keep the program simpler.
<lang rexx>/*REXX pgm implements the 16 game; displays game grid, prompts for a move, game won? */
<lang rexx>/*REXX pgm implements the 16 game; displays game grid, prompts for a move, game won? */
sep= copies('─',8); pad=left('',1+length(sep) ) /*pad=9 blanks. SEP is used for msgs.*/
sep= copies('─',8); pad=left('',1+length(sep) ) /*pad=9 blanks. SEP is used for msgs.*/