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.

The 20 Line Challenge / [LOCKED] Crappy!

Author
Message
TechLord
16
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 1st Nov 2007 14:04 Edited at: 1st Nov 2007 14:05
Ok, its 26 lines But, whats more important, is that it demonstrates a powerful undocumented feature in DBPro: Multiple Parameters in Select...Case. Have fun!


Just make sure the parameters are [i]constants and|or literals not variable. Heck, it wont compile anyhows if you use variables. hehe.[/i]

Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 1st Nov 2007 17:23 Edited at: 1st Nov 2007 17:30
with a slight change it works in DBC too
I don't know craps but I know you can't get 13 with one die so I changed the dice variable to two dice.


Two Lines! I hate myself for destroying this code like that lol


"You must be someone's friend to make comments about them." - MySpace lied.
TechLord
16
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 1st Nov 2007 18:14 Edited at: 1st Nov 2007 19:50
@OBese87:Kewl.

Its against Rule #11 in my DarkCore: DarkBASIC Programming RuleSet to use ( : ) to concenate statements. LOL.

Mr Tank
16
Years of Service
User Offline
Joined: 25th Nov 2002
Location: United Kingdom
Posted: 4th Nov 2007 16:37
That's cool! Didn't know this thing existed!

SUPER BADASS SPACESHIP X: WEBSITE
FORUM TOPIC
Guyra
13
Years of Service
User Offline
Joined: 10th Nov 2005
Location: Norway
Posted: 5th Nov 2007 05:57 Edited at: 5th Nov 2007 05:58
@OBese87:
Quote: "I don't know craps but I know you can't get 13 with one die so I changed the dice variable to two dice."

Never heard of d20?
calcyman
11
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 5th Nov 2007 10:47
Quote: "Never heard of d20?"


I think that the d20 (20-sided) dice system is copyrighted by WotC.

Your signature has been erased by a hyper-intelligent pan-dimensional being (a mod)
Guyra
13
Years of Service
User Offline
Joined: 10th Nov 2005
Location: Norway
Posted: 5th Nov 2007 15:13
@calcyman: Sure, the d20 system is copyrighted by WotC. But the d20 itself is not. You can make your own system that uses d20s, but you can't use what is known as "the d20 system".

However, they also have a trademark license on the d20 system which makes it possible for other publishers except WotC to actually use the d20 system themselves without too much trouble.

Login to post a reply

Server time is: 2019-08-24 00:06:32
Your offset time is: 2019-08-24 00:06:32