_TITLE "21_Game from Rosetta Code" 'b+ just saw this at Rosetta 2020-08-09 today ' ref: http://rosettacode.org/wiki/21_Game
' Take turns adding 1, 2, or 3 until someone makes the total = 21, they are winner.
Total = 0 'reset
PRINT "21_Game Rosetta Code:" 'title for total human = 1 - human 'toggle player
getHuman: 'in case human plays 22, 23...
INPUT "Human: enter 1, 2, 3 for your turn, any other quits > "; add
IF add
+ Total
> 21 THEN PRINT "Too much to add, try again...":
GOTO getHuman
add = 21 - Total
add = 1
add = 1
add = 2
add = 3
add = 3 ' AI not that smart ;(
Total = Total + add
PRINT "Press any for next game..."