Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Obfuscated Code Contest : Prize - 50GB FTP Account
Index -> Contests
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Mackie




PostPosted: Sat Feb 16, 2008 12:29 am   Post subject: Obfuscated Code Contest : Prize - 50GB FTP Account

Alrighty folks. I have a 1TB web server and it's not getting used. So I've come up with a little contest to give away a piece of it. Since clean efficient code it staple of this site, I figure we should mix it up a little. The point is write the most confusing unsightly code possible, that still runs and does something useful. For a better definition just check Wikipedia. I will be the sole judge for this competition, because I really don't feel like coordinating anything. The code will be in Ruby. And no larger than 15KB.

If you don't like something about this contest, I don't care. It's my 50GB and I can do with it what I please.

Due Date: March 1st, 2008 (duh)

Post submissions in this topic. No one is going to take your code.

Let the games begin!

Quote:
Prize:
50,000MB FTP Account
50TB Bandwidth
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Feb 16, 2008 1:00 am   Post subject: Re: Obfusticated Code Contest : Prize - 50GB FTP Account

Mackie @ Sat Feb 16, 2008 12:29 am wrote:
And no larger than 15KB.

do you realize how many characters that is?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Mackie




PostPosted: Sat Feb 16, 2008 1:10 am   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Ahhh, sorry typo. 150KB...
zylum




PostPosted: Sat Feb 16, 2008 3:20 am   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

I think 5KB is more than enough considering it's in ruby.. I personally would go for 1KB.
Mackie




PostPosted: Sat Feb 16, 2008 4:00 am   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Oh man, I completely forgot.

Bonus Points for inefficiency! Razz
BigBear




PostPosted: Sat Feb 16, 2008 9:56 am   Post subject: Re: Obfusticated Code Contest : Prize - 50GB FTP Account

Due to the fact that I am fairly new it would be too hard. Too bad it's only in Ruby.

Nice setup though! Very Happy
Tony




PostPosted: Sat Feb 16, 2008 12:23 pm   Post subject: Re: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

zylum @ Sat Feb 16, 2008 3:20 am wrote:
I personally would go for 1KB.

I second zylum on this one.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
ericfourfour




PostPosted: Sat Feb 16, 2008 3:38 pm   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Just some clarifications:

1 Character = 1 Byte

Base 10:
1 KB = 10^3 Bytes
1 MB = 10^6 Bytes
etc.

Base 2:
1 KiB = 2^10 Bytes
1 MiB = 2^20 Bytes
etc.
Sponsor
Sponsor
Sponsor
sponsor
Mackie




PostPosted: Sun Feb 17, 2008 1:12 pm   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Fine! If everyone is going to be so picky about it. No Size Limit. Also the prize FTP is going up to 60GB. Just because I'm in a good mood.
[Gandalf]




PostPosted: Sun Feb 17, 2008 3:04 pm   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Haha, everyone is pushing to change the contest in one direction, and then Mackie changes it in the other. Laughing

Anyway, I'm going to go ahead and attempt a default win:
code:
puts "EYE WIHN"
Tony




PostPosted: Sun Feb 17, 2008 3:15 pm   Post subject: Re: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Gandalf @ Sun Feb 17, 2008 3:04 pm wrote:
Anyway, I'm going to go ahead and attempt a default win

Laughing lets get this party started
code:

puts "#{gets.strip} wins!"
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Mackie




PostPosted: Sun Feb 17, 2008 4:27 pm   Post subject: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Tony's wining! Also big mistake on my part, I spelled obfuscated wrong... Just wanted to let everyone know before someone comes in and points it out making it look like an idiot. Razz

So I've got no problems if a Moderator wants to change that. Very Happy
Clayton




PostPosted: Sun Feb 17, 2008 4:43 pm   Post subject: Re: RE:Obfusticated Code Contest : Prize - 50GB FTP Account

Tony @ Sun Feb 17, 2008 3:15 pm wrote:
Gandalf @ Sun Feb 17, 2008 3:04 pm wrote:
Anyway, I'm going to go ahead and attempt a default win

Laughing lets get this party started
code:

puts "#{gets.strip} wins!"


Indeed:

Ruby:
puts "#{gets.strip!} wins!"
Mackie




PostPosted: Thu Feb 28, 2008 9:02 pm   Post subject: RE:Obfuscated Code Contest : Prize - 50GB FTP Account

ALright, seeing as there is such a small amount of interest in the contest. I guess I'll open it up a little bit.

New deadline is March 20th. I realize now that limiting it to Ruby was a mistake. Sooo....

Any language allowed!
Sane




PostPosted: Fri Feb 29, 2008 1:14 am   Post subject: RE:Obfuscated Code Contest : Prize - 50GB FTP Account

Here's my entry. It may or may not be final. IE, I might revise it some time before the deadline if someone raises the bar higher.

[b]Edit[b]: Some of the ASCII characters such as overscores didn't encode properly in my post. Oh well.

code:
#include                                <stdio.h>
#include                               <stdlib.h>
#include                                 <time.h>
#define V                                     '='
#define I                                 '='+'='
#define ZZZ                                   int
#define W                                   while
#define C()                         system("cls")

ZZZ X[0X763]={0},XX[0X763]={0};ZZZ XXXX,XXXXX;XXX
(){for(XXXX=1;XXXX<0X763;XXXX++){XXXXX=X[XXXX%I*(
XXXX/V)-'>']+X[XXXX%I*(XXXX/V)-V]+X[XXXX%V-'<'+V*
(XXXX/V)]+X[XXXX%V-1+/*??*/V*(XXXX/V)]+X[XXXX%V+1
+V*(XXXX/V)]+X[XXXX%V/*  */+'<'+V*(XXXX/V)]+ X [
XXXX%I*(XXXX/V)+V]+ X/*__*/[XXXX%I*(XXXX/V)+'>'];
XX[XXXX%I*(XXXX/V)]=X[XXXX%I*(XXXX/V)]&&XXXXX<2?0
:X[XXXX%I*(XXXX/V)]&&XXXXX>3/*??*/?0:!X[XXXX%I* (
XXXX/V)]&&XXXXX==3?1:X[XXXX%/*  */I*(XXXX/V)]  ;}
memcpy(X,XX,sizeof(X));for (/*__*/XXXX=1 ; XXXX <
0X763;XXXX++){putchar(X[XXXX%I*(XXXX/V)]?'#':' ')
;XXXXX=(!(XXXX/*??*/%/*??*/V/*??*/))?putchar(10):
0;}sleep(0X190/*  */)/*  */;/*  */C();}main( ) {;
;{}; X[0X3A2]=/*__*/X/*__*/[/*__*/0X3A3]=X[0X3A4]
=X[0X3A7]=X[0X3A8]=X[0X3E2]=X[0X421]=1;W(X)XXX();

/////////////////////////////////////////////////
char CC[]=  "Conway's Game Of Life"            ;}
/////////////////////////////////////////////////
Display posts from previous:   
   Index -> Contests
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 21 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: