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] - A program that reads the user's mind (not really).

Author
Message
Geoff
15
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Sheffield (U.K.)
Posted: 31st Oct 2011 23:57 Edited at: 1st Nov 2011 15:29
This program asks the user to think of a number. It then tells the user the number he is thinking of.
Geoff.


[MODEDIT - Please remember to close your code tags]
Darkzombies
11
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 16th Nov 2011 07:03
It always is 1 no matter what

-------------------------------------------------------------
Geoff
15
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Sheffield (U.K.)
Posted: 16th Nov 2011 09:32
Hello, Darkzombies,
Sorry for the trouble you are having with my snippet.
I have just tested it by:-
1. Creating a new program in my DarkBasic Pro.
2. Copying and pasting the code from the snippet into my new program.
I ran the program, and it does work o.k.

However, I noticed that when I didn't have the settings at (800,600,16), the program did not display very accurately.

Try adding "Set Display Mode 800,600,16", at the top of the code, just above "Randomize Timer()".

Please let me know if this works.
Geoff.

Login to post a reply

Server time is: 2022-11-30 12:50:03
Your offset time is: 2022-11-30 12:50:03