
-----------------------------------
Martin
Fri Feb 04, 2005 10:45 am

Obfuscated Coding Contest
-----------------------------------
200 bits for this one.

What your program has to do is output "Hello World" to the screen. There's a catch though: your goal is to make your code as confusing and difficult to read as possible.

Only rule is that your code must be indented properly.

Your program must finish executing within 5 seconds of loading up.

Go!

-----------------------------------
Tony
Fri Feb 04, 2005 10:59 am


-----------------------------------

++++++++

-----------------------------------
rizzix
Fri Feb 04, 2005 11:13 am


-----------------------------------
that is not obfuscated tony.. its just bf.

-----------------------------------
Martin
Fri Feb 04, 2005 11:43 am


-----------------------------------
One of the languages that is supported by this site, or that wtd has written a tutorial for only.

-----------------------------------
Tony
Fri Feb 04, 2005 12:07 pm


-----------------------------------
*Opens up adminPanel and adds brainfuck to the list of forums*
 :twisted:

-----------------------------------
Martin
Fri Feb 04, 2005 1:23 pm


-----------------------------------
Fine. -1000 bits for plagerizing.

-----------------------------------
Brightguy
Fri Feb 04, 2005 5:08 pm

Re: Obfuscated Coding Contest
-----------------------------------
Sub Form_Load()
    Dim a(0 To 10)
    a(0) = 29492
    a(1) = -42248461/504
    a(2) = 4881462049/50400
    a(3) = -2761745939/45360
    a(4) = 8480639179/362880
    a(5) = -99877913/17280
    a(6) = 20304973/21600
    a(7) = -6042593/60480
    a(8) = 807637/120960
    a(9) = -92357/362880
    a(10) = 3827/907200
    For b = 1 To 11
        c = 0
        For d = 0 To 10
            c = c + a(d) * (b ^ d)
        Next
        Print Chr(c);
    Next
End Sub
If you can't see the output make sure the form's AutoRedraw is True.

-----------------------------------
rizzix
Fri Feb 04, 2005 5:23 pm


-----------------------------------
k, beat this:

#!/usr/bin/perl

for (($______ = "M") =~ tr/J-M/A-E/,$_____ = '\\'.$______.'+',
       ($____ = qw(s/$1/ord("h")/goix||s{$1$5}(($1|$1).?\D+

-----------------------------------
zylum
Fri Feb 04, 2005 5:38 pm


-----------------------------------
k, beat this:

#!/usr/bin/perl

for (($______ = "M") =~ tr/J-M/A-E/,$_____ = '\\'.$______.'+',
       ($____ = qw(s/$1/ord("h")/goix||s{$1$5}(($1|$1).?\D+

lmfao  :lol:

-----------------------------------
bugzpodder
Fri Feb 04, 2005 5:58 pm


-----------------------------------
at least mine is original

see version two below


-----------------------------------
rizzix
Fri Feb 04, 2005 6:04 pm


-----------------------------------
yea so is mine :) 

nice one btw.  :wink:

-----------------------------------
Martin
Fri Feb 04, 2005 11:56 pm


-----------------------------------
Can anyone beat these...?

The race is on. Contest closes Sunday.

-----------------------------------
bugzpodder
Sat Feb 05, 2005 12:13 am


-----------------------------------
version two:


#include
#define B int
#define I main
#define T ()
#define S {
#define T1 (
#define ME T1
#define T2 )
#define Z }
#define s ;
#define b 0
#define BO return
#define lunch putchar

B I T S for ME B i s i

-----------------------------------
bugzpodder
Sat Feb 05, 2005 12:37 am


-----------------------------------
is there a judging criteria?  messy/code length/etc

-----------------------------------
rizzix
Sat Feb 05, 2005 12:44 am


-----------------------------------
yea good question.. although keep in mind martin, obfuscation is really vague.. it covers horrifyingly messy code to beautifully decorated code.. but one thing is for sure: the code should break standard coding conventions  and they do tend to make decyphering difficult.

edit: i suggest looking at international obfucated coding contests.. they give a better picture.

-----------------------------------
md
Sat Feb 05, 2005 9:54 am


-----------------------------------
C:

int main(void){printf("Hello world!");}


haha! I win! ;)

-----------------------------------
rizzix
Sat Feb 05, 2005 11:34 am


-----------------------------------
here's a rather simple, yet amusing one:

#!/usr/bin/perl

sub says {print shift} sub hi  {v72.101.108.108.111.32.shift} 
sub to   {shift().v10} sub all {v87.111.114.108.100.33} 
sub UNIVERSAL::AUTOLOAD {}

Perl, says hi to all and yes this entire sentence is part of the executable code

-----------------------------------
Martin
Sat Feb 05, 2005 11:34 am


-----------------------------------
I'm going to put this up to a vote. It will be a combination of the artisticness and the unreadability of the code.

-----------------------------------
Martin
Sun Feb 06, 2005 8:06 pm


-----------------------------------
Contest closed. 200 bits to bugz, 100 bits to BrightGuy.

Good job everyone :)

-----------------------------------
rizzix
Sun Feb 06, 2005 8:30 pm


-----------------------------------
sadly only three eligible persons participated in the contest  :roll:

-----------------------------------
Catalyst
Sun Feb 06, 2005 8:56 pm


-----------------------------------
too late but oh well

#include 
#define __for(a,b) int _it=b;_it