21 game: Difference between revisions
m
→{{header|REXX}}: only it's -> its
Walterpachl (talk | contribs) m (Undo revision 338856 by Walterpachl (talk)) |
Walterpachl (talk | contribs) 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
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
──────── The game total is now ════════ 5 ════════
Line 5,056:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 8 ════════
──────── The computer chooses 1 as
──────── The game total is now ════════ 9 ════════
Line 5,062:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 12 ════════
──────── The computer chooses 1 as
──────── The game total is now ════════ 13 ════════
Line 5,068:
3 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 16 ════════
──────── The computer chooses 1 as
──────── The game total is now ════════ 17 ════════
Line 5,074:
1 ◄■■■■■■■■■■ user input
──────── The game total is now ════════ 18 ════════
──────── The computer chooses 3 as
──────── The game total is now ════════ 21 ════════
|