Qbasicnews.com
September 18, 2019, 08:56:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: EDIT: Make a game in 10 lines or less.  (Read 11900 times)
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #30 on: March 09, 2004, 08:58:31 AM »

INT(RND) = 0 always. It should be INT (RND*2) Cheesy
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
jatos
Ancient QBer
****
Posts: 464



« Reply #31 on: March 09, 2004, 10:10:34 AM »

Right when i get home i will pull up 10 liner.
Also only 5 lines is not imposs; ever heard of the colon?
Logged

atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #32 on: March 09, 2004, 11:11:57 AM »

Read the rules: colons not allowed. That's cheating.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
jatos
Ancient QBer
****
Posts: 464



« Reply #33 on: March 09, 2004, 01:38:00 PM »

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
Logged

atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
KiZ
__/--\__
*****
Posts: 2879


WWW
« Reply #34 on: March 09, 2004, 02:52:50 PM »

Quote from: "na_th_an"
INT(RND) = 0 always. It should be INT (RND*2) Cheesy


How about CINT(RND) then Wink
Logged
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #35 on: March 09, 2004, 05:38:46 PM »

Hey, whatever guys Wink. I remembered the idea of the game Wink
Logged

PlayGGY
Forum Regular
**
Posts: 144



« Reply #36 on: March 10, 2004, 07:33:42 PM »

Does that guy still need a link to QB?  If so, go to qb4all.com.
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #37 on: March 10, 2004, 09:26:58 PM »

Nah. The ONE AND ONLY COLLECTION IS AT http://www.download-qb.tk he he he [/spam]
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Lachie Dazdarian
I hold this place together
*****
Posts: 955



WWW
« Reply #38 on: March 15, 2004, 08:34:02 AM »

PlayGGY, the pong game is brilliant. I forgot to do something this weekend. Even better.
Logged
PlayGGY
Forum Regular
**
Posts: 144



« Reply #39 on: March 15, 2004, 10:25:17 PM »

Quote from: "Lachie Dazdarian"
PlayGGY, the pong game is brilliant. I forgot to do something this weekend. Even better.


Thanks! Smiley

But I am not 100% sure what you mean by the second part...
Logged
Lachie Dazdarian
I hold this place together
*****
Posts: 955



WWW
« Reply #40 on: March 17, 2004, 04:33:09 AM »

I forgot to make my own contribution to the compo.
Logged
seph
Na_th_an
*****
Posts: 1915



« Reply #41 on: May 12, 2004, 04:58:40 PM »

Pong in 10 lines, brilliant. One keyer, even better. Lachie's game entry, invisible. Player 1 vs 2 game, I got cheated. Changed it to (RND * 10) > 9 and I found the game a whole lot in my favour against my gf. She was P1.
Logged

earn.
seph
Na_th_an
*****
Posts: 1915



« Reply #42 on: May 12, 2004, 06:48:50 PM »

Edited so I can refine the game first and get a lil help.
Logged

earn.
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!