Rock-paper-scissors: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: added/changed whitespace and comments, changed error output(s). |
m →extended, 5 choices: corrected a comment's wording. |
||
Line 3,576: | Line 3,576: | ||
@.a1=@.a1+1 /*keep a history of the CBLF's choices.*/ |
@.a1=@.a1+1 /*keep a history of the CBLF's choices.*/ |
||
say ! 'computer chose: ' c |
say ! 'computer chose: ' c |
||
if a1==c1 then say ! 'draw.' /* |
if a1==c1 then say ! 'draw.' /*Oh rats! The contest ended up a draw*/ |
||
else do who=1 for 2 /*either the computer or the CBLF won. */ |
else do who=1 for 2 /*either the computer or the CBLF won. */ |
||
if who==2 then parse value a1 c1 with c1 a1 |
if who==2 then parse value a1 c1 with c1 a1 |