Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Guess what number I'm thinking of [DBP]

Author
Message
Dietrich
14
Years of Service
User Offline
Joined: 15th Aug 2009
Location:
Posted: 17th Aug 2009 20:27
This is a simple code I wrote,I call it "Guess what number I'm thinking of!" (original huh?).



Hope I helped!
Cheers,
NiK Dietrich.

"Don't practice 'til you get it right,practice 'til you never get it wrong."
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 17th Aug 2009 23:02
Quote: "original huh?)."

NO.

Pretty cool, only cuz I got the correct answer like 7 times in a row....

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Dietrich
14
Years of Service
User Offline
Joined: 15th Aug 2009
Location:
Posted: 18th Aug 2009 00:33
Strange?
Do you mean you correctly guessed the answer 7 times in a row or was the answer the same 7 times in a row?

"Don't practice 'til you get it right,practice 'til you never get it wrong."
jeffhuys
17
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 24th Aug 2009 22:31
@ Dietrich:

Cool, but keep in mind to stay out of the way of "Goto"'s!
They are a bad type of coding. This is a (much, much) better way to do it:



Or here in 1 line:



You're the 'th to view this signature!
Jeko
14
Years of Service
User Offline
Joined: 29th Jun 2009
Location: On TGC Forum
Posted: 31st Aug 2009 01:42 Edited at: 31st Aug 2009 01:43
i know that i have it for tutorial of learning in db pro
but my game has have numbers bettwen 1 and 100 and says the number is to high or to low

i will post it tomorow

Ja sam ja.Ti si ti. Ko je ko?
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 5th Sep 2009 04:39
Hehe.





HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Sep 2009 11:52
No
to make sure its not the same each time.

Dark Physics makes any hot drink go cold.
Gamer Making
17
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 30th Sep 2009 03:53
yep you definitely need to use randomize timer()

Bach Tran
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Sep 2009 03:55
I kept answering 42 but it never took it, I think the game is broken.

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 31st Oct 2009 06:05

Not sure works

TGC Forum - converting error messages into sarcasm since 2002.
Digger412
16
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 26th Nov 2009 05:59 Edited at: 26th Nov 2009 06:00
@Obese - It does, but I've had it return a -12 and -26 before...

Here's another way to write it:

Login to post a reply

Server time is: 2024-05-05 01:44:36
Your offset time is: 2024-05-05 01:44:36