Ship Simulator

English forum => Small talk => Topic started by: Graeme Heddle on February 20, 2009, 10:28:49

Title: Guess the number code for VB2005
Post by: Graeme Heddle on February 20, 2009, 10:28:49
Does anyone have a code for a 'guess the number' game for Visual Basic 2005, I'm needing it for my computing class ASAP.  :)
Title: Re: Guess the number code for VB2005
Post by: Second Mate on February 20, 2009, 13:52:19
you could try 42 ........ its the answer to everything
Title: Re: Guess the number code for VB2005
Post by: TerryRussell on February 20, 2009, 16:23:45
What are you after, exactly? Do you mean you want to know how to use the rnd function?

Google is your friend...
Title: Re: Guess the number code for VB2005
Post by: mvsmith on February 20, 2009, 16:58:24
you could try 42 ........ its the answer to everything

Is that the best you can do after 7 ½ million years?
Title: Re: Guess the number code for VB2005
Post by: Person264 on February 20, 2009, 17:42:25
I think some Deep Thought is required to learn something like that. Terry how long did it take you to learn machine code, if you don't mind me asking?
Title: Re: Guess the number code for VB2005
Post by: TerryRussell on February 20, 2009, 20:16:12
Terry how long did it take you to learn machine code, if you don't mind me asking?

0010011100111000
or possibly
FF01
AC16
6000
BBA3

Actually, when I first started it was with ALGOL 60, which is only a step above Machine Code. A few years later, when microprocessors first came out, they were just 4-bit devices, rather like the RISC PICs of today only more primitive. The only way to communicate with them was to blow EPROMS and talk using Machine Code.

Back then, there was only Machine Code. I upgraded to 8086 and Z80 programming eventually, and moved into the current WinTel stuff.
Title: Re: Guess the number code for VB2005
Post by: Graeme Heddle on February 21, 2009, 19:40:48
No, I mean a program to run a 'guess the number' game.
Title: Re: Guess the number code for VB2005
Post by: TerryRussell on February 21, 2009, 21:38:36
As it's for your classwork, I won't do your homework for you.

Otherwise, you'll never learn for yourself, surely?
Title: Re: Guess the number code for VB2005
Post by: Graeme Heddle on February 21, 2009, 21:58:43
No, my teacher said we had to try and find a program on the internet and I just don't have the time to spend hours looking for one, I was just wondering if anyone on here knew one.
Title: Re: Guess the number code for VB2005
Post by: TerryRussell on February 21, 2009, 22:03:46
I just typed

"VB random numbers"

into Google and the very first one looked ideal. Surely you can do that?
Title: Re: Guess the number code for VB2005
Post by: Graeme Heddle on February 21, 2009, 22:05:14
Ok i'll try that thanks. :thumbs: