05-15-2007, 10:13 PM
Since the player doesn't lose any "lives" if "0" or a negative number are used, you may want to consider changing your code:
CASE IS = 0
PRINT "You may not guess 0. Please guess again."
SLEEP
CLS
GOTO start
TO
CASE IS < 1
PRINT " This game is for the LIVING only!
PRINT "Please enter a number between 1 and 20"
SLEEP
CLS
GOTO START
This will eliminate the need for the "< 0" CASE.
CASE IS = 0
PRINT "You may not guess 0. Please guess again."
SLEEP
CLS
GOTO start
TO
CASE IS < 1
PRINT " This game is for the LIVING only!
PRINT "Please enter a number between 1 and 20"
SLEEP
CLS
GOTO START
This will eliminate the need for the "< 0" CASE.
adsherm