03-15-2004, 01:26 AM
Im doing a simple quiz game containging the capitals of the world. And Im trying to add score to it so you will get one score for every right.
1.The problem is when you answer right the first time and goes to the second and answer right again the counter resets I have tried a lot of things but cannot come up with any good soulution. Here is the code so you can see and help me better.
2. Another question to how do I do if the user inputs Kabul or KABUL. I have tried to input LCASE$ and those things but I dont get it to work and I dont think it does eiter.
----------------------------------------------------
afghanistan:
INPUT "Afghanistan: ", city$
IF city$ = "kabul" then
goto albania
else
goto afgwrong
end if
afgwrong:
print "Wrong!"
goto albania
INPUT "Albania: ", city$
IF city$ = "tirana" then
goto sweden
else
goto albwrong
end if
albwrong:
print "Wrong!"
goto sweden
'AND SO ON.....................................................
And I'm sure there is an easier way to do this, if you know which you probably do plz write it down :wink:
1.The problem is when you answer right the first time and goes to the second and answer right again the counter resets I have tried a lot of things but cannot come up with any good soulution. Here is the code so you can see and help me better.
2. Another question to how do I do if the user inputs Kabul or KABUL. I have tried to input LCASE$ and those things but I dont get it to work and I dont think it does eiter.
----------------------------------------------------
afghanistan:
INPUT "Afghanistan: ", city$
IF city$ = "kabul" then
goto albania
else
goto afgwrong
end if
afgwrong:
print "Wrong!"
goto albania
INPUT "Albania: ", city$
IF city$ = "tirana" then
goto sweden
else
goto albwrong
end if
albwrong:
print "Wrong!"
goto sweden
'AND SO ON.....................................................
And I'm sure there is an easier way to do this, if you know which you probably do plz write it down :wink: