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.

DarkBASIC Discussion / 20-liner Contest question...

Author
Message
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 7th Nov 2003 05:34
Yes. I am working on a 3D mini-game that is starting to come out really well. I've got approximately 200 commands, and about 270 lines so I'm getting ambitious. However, if I was to start stacking some of those commands (especially the ones with long complicated equations in them), it would go way beyond the 255 character length that DBclassic can handle to compile. You see my problem?

I do realize that a command has to stand alone without an "AND" statement, or a colon. I also am aware of the 25 command limit to a line...

Is there a length limit in a line in the 20 line challenge in term so of characters? If there isn't then I'm going to have nightmares making sure all the colons are where they should be when I submit my magnum opus.

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 8th Nov 2003 00:06
why not look in the 20liner contest forum? i think that might be a really nice place to look
and i think the limit is 255

Two words, moo.
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 8th Nov 2003 00:15
25 Commands per line, there is no character limit. 2 commands are separated by a : . The AND operator doesn't separate commands, ie.

if x=1 and y=2

If one command, not 2. Hope that rule helps you reduce the length, otherwise, a good way to reduce length is to change your variable names to 1 or 2 characters. Use the replace option in the menu, but save your expanded version beforehand, or else you'll end up with un-readable code if you go wrong.

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 8th Nov 2003 00:17
Well, I looked around and I couldn't find a rule limiting the number of characters on one line.

I also found looked at actual submissions that wouldn't compile because some of their lines actually went beyond 255 characters. Therefore, I think that I'm going to sigh relief and have nightmares about placing semicolons at the end of each of my statements.

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 8th Nov 2003 00:20
@ Hamish McHaggis
Thanks a whole bunch, that reduces my code by about 20 commands (complicated algorythms).

@ Board Moderators

Buckle your seatbelt for one heck of a 20-liner entry some time this month...

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Nov 2003 02:59
lol


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 8th Nov 2003 03:47
Quote: "
20 commands
"


Whups, major misprint (My brain isn't functioning very well with the flu). I actually meant 200 commands, but it's actually closer to 170.

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)

Login to post a reply

Server time is: 2025-05-21 19:54:40
Your offset time is: 2025-05-21 19:54:40