Qbasicnews.com

Full Version: EDIT: Make a game in 10 lines or less.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
INT(RND) = 0 always. It should be INT (RND*2) Big Grin
Right when i get home i will pull up 10 liner.
Also only 5 lines is not imposs; ever heard of the colon?
Read the rules: colons not allowed. That's cheating.
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
Quote:INT(RND) = 0 always. It should be INT (RND*2) Big Grin

How about CINT(RND) then Wink
Hey, whatever guys Wink. I remembered the idea of the game Wink
Does that guy still need a link to QB? If so, go to qb4all.com.
Nah. The ONE AND ONLY COLLECTION IS AT http://www.download-qb.tk he he he [/spam]
PlayGGY, the pong game is brilliant. I forgot to do something this weekend. Even better.
Quote:PlayGGY, the pong game is brilliant. I forgot to do something this weekend. Even better.

Thanks! Smile

But I am not 100% sure what you mean by the second part...
Pages: 1 2 3 4 5