Hi, the aim of the game is to guess the right number. Pretty crap but its my first program in a long time. Hope u enjoy
.
set window on:do
cls rgb(5,5,500)
input " I am thinking of a number what number am i thinking of? ",num2
num=rnd(9)+1:if num>10 then num=10
if num2=num
print "you win"
else
print "wrong try again"
endif
wait key
cls
cls rgb(500,5,5)
input " I am thinking of a number what number am i thinking of? ",num2
num=rnd(9)+1:if num>10 then num=10
if num2=num
print "you win"
else
print "wrong try again"
endif
wait key:loop