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 / The twenty line challenge is pointless.

Author
Message
Sethric
15
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 13th Apr 2004 22:22
The twenty line challenge is a very simple and stupid idea in the stage that it's in now. Why doesn't someone just put their entire game engine on one line?

It needs improvements. (I.E. for a more abstract challenge don't even use the colon.)

In one way or another we all waste time.
Richard Davey
Retired Moderator
17
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 13th Apr 2004 22:25
If you've ever tried it, you'll soon realise you cannot put all programs on one line.

With our species on the edge of extermination,
with no prospect but a horrible death,
we actually played games.
comando 300
15
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 13th Apr 2004 22:55
yeah, there's a character limitation(each line just can handle 255 characters) and the rules says 25 command per lines and a very good program use more than 20 lines of codes.

CURRENT PROJECT: RETRO PAC-MAN
Neofish
15
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 14th Apr 2004 01:53
the challenge is great, go away

Dgamer
16
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 14th Apr 2004 02:27
dbpro dont have the 255 char limition and it still is impossible to put some progs in one line

The statement below is true
The statement above is false
Manticore Night
15
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 14th Apr 2004 02:52
I know this is off topic but N30F15H, that avatar's amazing. Did you model it yourself?

It's amazing how much TV has raised us. (Bart Simpson)
Tomy
15
Years of Service
User Offline
Joined: 25th Dec 2003
Location:
Posted: 14th Apr 2004 03:54 Edited at: 22nd May 2004 04:10
you should maybe announce a winner every month, cuz if not I tend to agree Sethric that the 20-line challenge is pointless in the current stage...

But I still think it's one of the greatest ideas and it is always interesting what ppl can crunch into 20 lines, but without a winner... erm.. i don't know


GameVisions Softwares - http://www.gamevisions.cbj.net
NathanF
15
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 14th Apr 2004 03:57
I tried that. Once you use an 'if' statement, you have to go to the next line. So yeah, pretty much impossible.

.........what's the point of reading this?
Tomy
15
Years of Service
User Offline
Joined: 25th Dec 2003
Location:
Posted: 15th Apr 2004 20:46 Edited at: 22nd May 2004 04:10
no look at this one:



or like this



GameVisions Softwares - http://www.gamevisions.cbj.net
Intruder
15
Years of Service
User Offline
Joined: 13th Apr 2004
Location: UK
Posted: 17th Apr 2004 19:28
why do some peeps have to be negative all the freekin time?

The compo is a bit of fun dood.. CHILL!


** If GOD would have wanted us to walk around NAKED, he would have made us be born that way **
Manticore Night
15
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 20th Apr 2004 05:41
Quote: "if a = 1 then blahblahblah : "then continue"
"


What have you been smoking!!!
(No Offence)

It's amazing how much TV has raised us. (Bart Simpson)
Tomy
15
Years of Service
User Offline
Joined: 25th Dec 2003
Location:
Posted: 20th Apr 2004 21:03 Edited at: 22nd May 2004 04:10
Again for all those who seems not to be able to follow my easy to understand example



understood?


GameVisions Softwares - http://www.gamevisions.cbj.net
Mussi
16
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 21st Apr 2004 23:20 Edited at: 21st Apr 2004 23:20
try to put this one in one line with 'then' :



thats when it becomes hard, it really is usefull to try and make a 20 liner as you'll need to learn to optimise your code.



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
Tomy
15
Years of Service
User Offline
Joined: 25th Dec 2003
Location:
Posted: 22nd Apr 2004 00:18 Edited at: 22nd May 2004 04:10
that's why i included the other code snippet...



lol you're right the blahblahblah is wrong there


GameVisions Softwares - http://www.gamevisions.cbj.net
Van B
Moderator
16
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 28th Apr 2004 12:36
LOL!

The 20 line forum is as relevant as any other forum IMO, we're all programming as a hobby after all. 20 liners are a challenge to see how much you can fit onto your 20 lines - surely the real competition is to see who can get the most out of their limited code. People have written FPS games, tetris clones, cool demos, and it's somewhere to quickly grab working code examples that you can mess around with, newbies would do well to try as many 20-liners as they can and learn from them.


Van-B


The nature of Monkey was irrepressible!.
Zenincanin 14
15
Years of Service
User Offline
Joined: 14th Apr 2004
Location: In The Cat Lair at Peter Criss\'s House.
Posted: 2nd May 2004 07:22
Yes, but it would still be nice if there was a winner everymonth.

Good Games Are Made by Powerful Coders
NathanF
15
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 2nd May 2004 14:43
im not sure, i might be doing something wrong.
But this code don't work
So can anyone tell me why?



.........what's the point of reading this?
Tomy
15
Years of Service
User Offline
Joined: 25th Dec 2003
Location:
Posted: 2nd May 2004 15:14 Edited at: 22nd May 2004 04:10
you cannot use more than 1 if then statements on one line!



This should work!


GameVisions Softwares - http://www.gamevisions.cbj.net
NathanF
15
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 2nd May 2004 15:25
thanks, i fixed it up with if/endif
if upkey()=1:move camera 5:endif:if downkey()=1:move camera -5:endif
hahaha,i wrecked myself...

.........what's the point of reading this?
Emperor Baal
15
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 6th May 2004 10:33
@tomy and Dark Sephiroth

Quote: "you cannot use more than 1 if then statements on one line![/qoute]

This statement is wrong. You can use multiple if-then statements on one line. But the result is the same as:



[quote]
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Tomy
15
Years of Service
User Offline
Joined: 25th Dec 2003
Location:
Posted: 6th May 2004 22:16 Edited at: 22nd May 2004 04:11
I meant it like that:



this doesn't work, does it?


GameVisions Softwares - http://www.gamevisions.cbj.net
Emperor Baal
15
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 6th May 2004 22:26
it will work, but there are two results:



if statement1=0 then a=3 : if statement2=2 then a=0

would be

if statement1=0
a=3
if statement2=2 then a=0
endif



if statement1=0 : a=3 : endif : if statement2=2 : a=0 : endif

would be

if statement1=0 then a=3
if statement2=2 then a=0


Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Ian T
16
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 18th May 2004 17:43
25 command per line limit. 20 lines. 500 commands. A bit big for a real 'challenge', but saying you can fit serious projects on to one line-- IE 25 commands-- is asinine.

Flashing Blade
16
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 25th May 2004 23:34 Edited at: 25th May 2004 23:35
I did a 20 line pac-man ( won too )
One of my lines had over 7000 (yep seven thousand) characters.
WooT


that dude
15
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 26th May 2004 13:39
if you ask me, the whole point of having the twenty line challenge is to give people some sort of challenge. it doesn't hurt anything to have it. however, i agree. there should be a winner each month. it isn't stupid.
by the way, mussi, what is that image from in your signature?

the left side of my head isn't bigger, the right side is just smaller
Hamish McHaggis
16
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 27th May 2004 01:13
Just to clear this up, since everyone seems a bit sketchy on this.

When you use if-then, every command on the same line is within the if statement, so this...



is equal to this...



If you wanted to put it all on the same line with the for-next loop outside the if statement you would use endif, like so...



The 20 line comp isn't stupid as the rules are you can only have 20 commands on a line, commands being things separated by colons.

Athelon XP 1600+/Radeon 9600 Pro/256 RAM

Login to post a reply

Server time is: 2019-06-24 22:49:27
Your offset time is: 2019-06-24 22:49:27