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 / 20 Line Expander!

Author
Message
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Mar 2003 23:14 Edited at: 30th Mar 2003 00:51
This program converts the 20 line challenge entries into an easily readable format (ie. one command per line, indented appropriately).

http://wave.prohosting.com/~rwknight/files/20line.exe


[Edit: To use just paste the code in the top box, Click "Expand Code" and voila it appears in the box below]

Notes:
- Colons inside quotes are not ignored by the parser as they should be.
- Labels will lose the colon after them, so you will need to manually add it to get DBP to see the label.

Current Project: Retro Compo. Entry.
AnalSauceMonkey
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: I can't find myself
Posted: 29th Mar 2003 23:43
Cool! Do you think you could make a program that checks to see if a program can be put into 20 lines and then does it?

Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Mar 2003 23:44 Edited at: 30th Mar 2003 00:49
[Deleted by Self]

Current Project: Retro Compo. Entry.
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Mar 2003 23:44
"Cool! Do you think you could make a program that checks to see if a program can be put into 20 lines and then does it?"

I certainly think so. I could always give it a shot

Current Project: Retro Compo. Entry.
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 30th Mar 2003 00:07
Nice!

"If you can't make it good
make it look good."
Bill Gates
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Mar 2003 02:22
I could use some help here.

I expanded the SkyRoads entry, the expanded code works fine. However when I compress it I get this:



Can anyone help me work out why the above code does not work?

Current Project: Retro Compo. Entry.
rapscaLLion
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 30th Mar 2003 03:24
lol that's pretty useful

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 30th Mar 2003 04:07
Rob K,

If you compare to original, you have to be careful of lines like IF x THEN....

putting THEN with IF means run commands until end of line. You have to keep them same as original.

Gronda, Gronda
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Mar 2003 13:28
Ah yes, of course, thanks Sonic

Current Project: Retro Compo. Entry.

Login to post a reply

Server time is: 2024-03-29 12:15:54
Your offset time is: 2024-03-29 12:15:54