Rock-paper-scissors: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added/changed comments in the REXX section header, added a programming note in the output section.) |
m (→{{header|REXX}}: changed comments in the REXX section header and program note (output section).) |
||
Line 3,413:
=={{header|REXX}}==
This
::* allows the human player to abbreviate their choice
::* issues appropriate error messages for an incorrect (or no) choice(s)
Line 3,455:
end /*forever*/
/*stick a fork in it, we're done.*/</lang>
Programming note: the REXX program
<lang> upper a; a1=left(a,1) /*uppercase answer, get 1st char.*/</lang>
could be replaced with a more compact (and faster and obtuse and less idiomatic) version:
|