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 / The 8-Ball Program (DBC)

Author
Message
Axelman
20
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 12th Jul 2005 20:47
Hi Everyone!

Just Recently my cousin was up for the holidays, he is a bit of a newbie programmer. To teach him some of the basics of DarkBASIC I wrote an EXTREMEMLY Basic 8-Ball Program. It uses the Random Number Generator to pick something to say. It runs WITHOUT any MEDIA, and is fully commented (If you want to add media then that is encouraged).

This program will be useful if you want to learn how to use variables, the difference between Integer Number Variables and Word(String) Variables, and how to use basic text commands.

Changes to the program are encouraged.

Here is the Code:



Have Fun!
Cya Later,
Axelman

The only problem is that there can never be a completely random scenario.

THIS SPACE FOR RENT
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 13th Jul 2005 05:29
This is a great example to add arrays!

Immunity and Annihalation makes Immunihalation...
Axelman
20
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 15th Jul 2005 15:28
Thanks Sven, I hope you can find it useful. As i said before, changing the program in any way is fully encouraged.

Have Fun!

Cya Later,
Axelman

THIS SPACE FOR RENT
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Jul 2005 00:07
Nono, I am not a newbie, but I mean that this code is very good for teaching someone about arrays.

Immunity and Annihalation makes Immunihalation...
Axelman
20
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 20th Jul 2005 16:35
yeah, your right. I am Sorry if you were offended. I'll try adding arrays and see if that works.

Cya Later,
Axelman

THIS SPACE FOR RENT

Login to post a reply

Server time is: 2024-09-23 23:25:52
Your offset time is: 2024-09-23 23:25:52