Posts: 6,419
Threads: 74
Joined: Mar 2002
INT(RND) = 0 always. It should be INT (RND*2)
Posts: 437
Threads: 32
Joined: Mar 2004
Right when i get home i will pull up 10 liner.
Also only 5 lines is not imposs; ever heard of the colon?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Read the rules: colons not allowed. That's cheating.
Posts: 437
Threads: 32
Joined: Mar 2004
Heres my 10 liner; made a long time ago and not that impresive oh and simflied to make it a 10 liner....
print "I have have thought of a number between 1 to 10"
1: label:
2: guess = guess + 1
3: input "", num
4: randomize timer
5: numb = int(rnd * 10) + 1
6: if num = numb then goto exit
7: print "Wrong number, try again."
8: goto label
9: exit:
10: print "You guessed the number in ", guess, " attempts
Posts: 2,771
Threads: 96
Joined: Oct 2003
Quote:INT(RND) = 0 always. It should be INT (RND*2)
How about CINT(RND) then
Posts: 3,343
Threads: 83
Joined: Mar 2003
Hey, whatever guys
. I remembered the
idea of the game
Posts: 144
Threads: 8
Joined: Feb 2004
Does that guy still need a link to QB? If so, go to qb4all.com.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Nah. The ONE AND ONLY COLLECTION IS AT
http://www.download-qb.tk he he he [/spam]
Posts: 773
Threads: 71
Joined: Mar 2002
PlayGGY, the pong game is brilliant. I forgot to do something this weekend. Even better.
Posts: 144
Threads: 8
Joined: Feb 2004
Quote:PlayGGY, the pong game is brilliant. I forgot to do something this weekend. Even better.
Thanks!
But I am not 100% sure what you mean by the second part...