Anonymous user
Nim game: Difference between revisions
m
→{{header|REXX}}: added programming notes.
(→{{header|REXX}}: added the REXX computer programming language for this task.) |
m (→{{header|REXX}}: added programming notes.) |
||
Line 399:
=={{header|REXX}}==
Programming notes: extra error checking was done with specific informative error messages. Also included was a method of quitting the game. The number of (starting) tokens (the ''pot'') can be specified on the command line, the default is '''12'''.
<lang rexx>/*REXX
pad= copies('─', 8) /*eyecatcher literal used
parse arg pot _ . 1 __ /*obtain optional argument from the CL.*/
if pot=='' | pot=="," then pot= 12 /*Not specified? Then use the default.*/
|