Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple question - "Duplicate definition"
#10
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.
adsherm
Reply


Messages In This Thread
Simple question - "Duplicate definition" - by Anonymous - 02-24-2007, 03:54 PM
Simple question - "Duplicate definition" - by dadsherm - 05-15-2007, 10:13 PM
Simple question - "Duplicate definition" - by Mac - 05-16-2007, 03:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)