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.

Newcomers DBPro Corner / My first full program (dbp)

Author
Message
The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 2nd Mar 2006 00:14 Edited at: 2nd Mar 2006 00:39
Hey everyone i made this program that lets you enter a number between 1-6 and the computer generates a number and if its number is your number you win! oh and it tells you how long the computer has been runnimg in milleseconds.If this code looks weird because i could have made it easier for myself that it is because my dbp vol 1 has taken over 14 weeks and they only sent me the first chapter
hope you like! and it is in the codebase too.

EDIT: okay also wanted to know what an mmorpg is?
thanx

Have No Fear Help Is Here
DELL 800MHZ 1GB RAM PENTIUM 4 MICROSOFT XP
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 2nd Mar 2006 00:35 Edited at: 2nd Mar 2006 00:43
Good job,man! excellent start. mayhaps you should display what number the computer selected to show the player why he lost. if you can add that? I'll show you how to make it so as that if the player selects a number higher than 6 or lower than 1, he will be asked to choose between 1 and 6 and no higher or lower.

Quote: "EDIT: okay also wanted to know what an mmorpg is?
thanx"


Massive Multiplayer Online Role Playing Game. This isnt something you want to try to program just yet. You're off to an excellent start with your Darkbasic programming. Keep developing them.


The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 2nd Mar 2006 00:41
yah thanx x1b! is there a way to change how many milliseconds the
computer has been runing to regular old secounds?

thanx

Have No Fear Help Is Here
DELL 800MHZ 1GB RAM PENTIUM 4 MICROSOFT XP
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 2nd Mar 2006 00:51 Edited at: 2nd Mar 2006 01:01
It does show the time in seconds. The format shown is Hour:Minute:Seconds so what you want to look at is the last 2 digits

As promised,here is how you can control what range of number the player selects




Now here's a hint.. given the time which the game begins and the time it ends.. can you figure out how to display how much time elapsed between the start time of the game minus the end of the game..


CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 2nd Mar 2006 01:05
side note, milliseconds divided by 1000 will give you seconds

1000 milliseconds = 1 second

FREE Automatic file updates for your distributed Games and Apps - see Program Announcements Forum - DBP Demo
The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 2nd Mar 2006 22:13
yah i was getting mixed up with a different command

Have No Fear Help Is Here
DELL 800MHZ 1GB RAM PENTIUM 4 MICROSOFT XP

Login to post a reply

Server time is: 2024-11-27 03:37:34
Your offset time is: 2024-11-27 03:37:34