21 game: Difference between revisions

6 bytes removed ,  2 years ago
m
→‎{{header|REXX}}: only it's -> its
m (Undo revision 338856 by Walterpachl (talk))
m (→‎{{header|REXX}}: only it's -> its)
Line 5,014:
if $==goal then leave /*the user won the game with the last #*/
call ?; if y==. then y= random(1, 3) /*get computer's choice or a random #*/
say sep 'The computer chooses ' y " as it'sits choice." /*inform player.*/
call tot y, 0 /*call subroutine to show the total. */
end /*j*/
Line 5,050:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 3 ════════
──────── The computer chooses 2 as it'sits choice.
──────── The game total is now ════════ 5 ════════
 
Line 5,056:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 8 ════════
──────── The computer chooses 1 as it'sits choice.
──────── The game total is now ════════ 9 ════════
 
Line 5,062:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 12 ════════
──────── The computer chooses 1 as it'sits choice.
──────── The game total is now ════════ 13 ════════
 
Line 5,068:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 16 ════════
──────── The computer chooses 1 as it'sits choice.
──────── The game total is now ════════ 17 ════════
 
Line 5,074:
1 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 18 ════════
──────── The computer chooses 3 as it'sits choice.
──────── The game total is now ════════ 21 ════════
 
2,295

edits