Jump to content

Rock-paper-scissors: Difference between revisions

m
→‎{{header|REXX}}: changed comments in the REXX section header and program note (output section).
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 version of the REXX program version:
::* 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: &nbsp; the REXX program statement (linetwo) statements on line 15:
<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:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.