Obfuscated GML contest!

Posted by ludamad on May 3, 2009, 5:15 p.m.

Well, I was having fun with how ugly GML can be if you so choose, and I decided 'why not have an ugly code contest?'

Here's an example of actual legal GML:

Quote:

switch 0begin case 0:x=0break}

if a=0then begin b=1}else if a==0{b:=1end

The rules:

-The most interesting yet least understandable script wins

-The whole thing has to be one script, of any name.

-The script cannot be more than 5000 characters

-The script can do any small task involving pop up windows, and possibly user input

Comments

SteveKB 15 years, 7 months ago

Quote:
noneexistent=0 linesarefunyes='_' lolol=9000 bit64=64 ten=2*5

confusedface='o' hot=lolol duck='uc' invisible=' ' hohoho='t' death='d' checkers='wh'

mkay='k' mine='my' stars='*' meaningoflife=42 tubby='ub' bestletter='f'

fags=true facebooksucks=fags www='c' china='e'

digits=bit64 yourgirlfriend=noneexistent silent='s' wu=checkers

yourmom=hot ludaluda=ten slut='ut' basketball='oop' oshi=confusedface

yummycheese=lolol/ludaluda fuck=-facebooksucks

fuck2=hot*yourmom school=yourgirlfriend-1 dawhoop='shoop' geometry='-'

youtube=fags cheesepuffstastegood='dr' trigonomymathsok='tring'

lolextremes='w' myfav=www+linesarefunyes+'blue' chickens='se' live='life'

icanhasa='a' wierdersea=')' pokemans='ex' loltype='ol' lolstart='l'

blueandblack='col' emergency='or' cheese='s' waffles600=hohoho

verbs=cheese+duck+mkay+invisible+mine+invisible+stars+stars+stars+stars

wierdsee='(' multiplicationlol='/' baddy='mean' poptart='in' gangsta='g'

combustionenginesfortehwin=',' redcross='+' dad=death

shoopdawhoop=100+school+yummycheese/digits+yourgirlfriend fail='you'

execute_string(cheesepuffstastegood+

icanhasa+lolextremes+linesarefunyes+chickens+waffles600+

linesarefunyes+blueandblack+emergency+wierdsee+myfav+wierdersea

)lolbargain=cheesepuffstastegood+icanhasa+lolextremes+linesarefunyes+waffles600+

pokemans+waffles600+wierdsee+lolstart+

loltype+loltype+multiplicationlol+'digits'+geometry+baddy+poptart+gangsta+oshi+bestletter+live+redcross+dawhoop+

dad+icanhasa+wu+basketball+combustionenginesfortehwin+fail+waffles600+tubby+china+redcross+

'facebooksucks'+multiplicationlol+bestletter+duck+mkay+'2'+geometry+bestletter+duck+mkay+

stars+'8'+combustionenginesfortehwin+'verbs'+wierdersea lolsuper=pokemans+'e'+www+slut+'e'+linesarefunyes+silent+trigonomymathsok+'(lolbargain)'

execute_string(lolsuper)

make sure it's in the draw event.

Juju 15 years, 7 months ago

Seriously guys, what the hell is with execute_string?

sirxemic 15 years, 7 months ago

Quote:
___···=··argument0;____······=

argument1;if··___··=0||·____·=

0return··___|···____/*·····*/_

=0··while·((···___|____/*··*/)

&1·/**/=0){_+=1······___=___>>

1·____=/*·*/____>>1}····while(

(___·&1)=0/**/)___=···___·>>1{

do·{··while·(____&·1·=·0)·____

=··____·>>·1if·(___<·____)____

-=___··else{__=·___-·____··___

=·____·____=__·end··____=·____

>>1}until·____=0return·___<<_}
It makes a nice square/rectangle in a monospaced font. Don't forget to replace the dots with spaces, since dots are not supported of course.

ludamad 15 years, 7 months ago

http://rafb.net/p/Pwdd0b44.html

I'd like to see someone decipher what that does :P

Or, more accurately, how it does what it does

sirxemic 15 years, 7 months ago

Also, juju, how do I use your script? It gave an error.

And seriously guys, what the hell is with execute_string?

Also, ludamad, that script error's like crazy… And I fixed it myself, I believe it's a whitespace issue.

Kenon 15 years, 7 months ago

excuse me but wtf.

That code example is hideous.

ludamad 15 years, 7 months ago

Posted a link to a properly formatted version. Also, execute_string allows for high levels of obscurity. I used it differently than the others, though.

sk8m8trix 15 years, 7 months ago

Heh leave it to lLuda to do this. Meows is dumb though.

Juju 15 years, 7 months ago

Solved that one last night with luda. Time for some self-modifying scripts!

Iluvfuz 15 years, 7 months ago

How about we change the code example to this:

Quote:
speed = 1

EVERYONE START OBFUSCATING!