Page 1 of 1

TWIFComp

Posted: Wed Apr 28, 2010 9:06 pm
by bruce
I submitted a game to TWIFComp. The rules were, the source had to be 140 or fewer non-whitespace characters.

http://dhakajack.templaro.com/node/56

Here's the readme:

Code: Select all

REQUIREMENTS:

A system running Linux (i386, x86_64, ppc, armv5tel, or s390)
The tar and gzip utilities in $PATH somewhere
Perl at /usr/bin/perl, /usr/bin in $PATH
About 500MB free disk space (not kidding)

Instructions:
unpack distribution
./mma.pl

The source code will be found in:
workspace/sources/MMA.inform/Source/story.ni

And here's my proof that it's legal:
adam@mini311&#58;~/src/spacifier$ ls -l mma.pl; < mma.pl perl -pe 's/\s*//g' | wc -c
 
-rwxr-xr-x 1 adam adam 339147099 2010-04-21 23&#58;36 mma.pl
137
Yes, that's right. 137 non-whitespace characters....and 339 million whitespace. Here's the non-whitespace:

Code: Select all

#!/usr/bin/perl
open&#40;O,">t"&#41;;while&#40;<DATA>&#41;&#123;s/\t/                /g;&#40;$c&#41;=&#40;/^&#40;\ *&#41;$/&#41;;print O chr&#40;length&#40;$c&#41;&#41;&#125;;close O;`gzip -dc t|tar xpf -`;system&#40;"./a"&#41;;
__DATA__
Bruce

Posted: Wed Apr 28, 2010 9:51 pm
by Ice Cream Jonsey
You didn't.

You didn't.

You couldn't have... I ... I heard someone made a game in that whitespace language, but that's just a - it's an untested prototype!

No way. No friggin' way!

Posted: Thu Apr 29, 2010 2:03 pm
by pinback
I don't even know what the game is, but you win.

**** You have won ****

Posted: Thu Apr 29, 2010 6:44 pm
by Ice Cream Jonsey
I will be outraged if Bruce doesn't win the Twitter Comp. I would like to say that I have not played any other entries yet, so my opinion is unvalued. But 337 million white spaces & Stiffy Makane? You've won.

How much of the game is included, Bruce?

Posted: Thu Apr 29, 2010 10:40 pm
by pinback
I think it will not win because it does not keep with the "spirit" of the competition.

However, it has won our hearts and minds.

Which is much more, or less, important.

Posted: Sat May 01, 2010 10:03 pm
by bruce
Ice Cream Jonsey wrote:I will be outraged if Bruce doesn't win the Twitter Comp. I would like to say that I have not played any other entries yet, so my opinion is unvalued. But 337 million white spaces & Stiffy Makane? You've won.

How much of the game is included, Bruce?
Pretty much everything I've written so far...although the game arbitrarily ends when you get to Darkest Africa, but since you have the source, you can fix that.

What I have so far is probably 75-80% of the whole game.

Bruce

Posted: Mon May 03, 2010 8:05 am
by sgranade
Hey, congrats on your TWIFComp placement!

Posted: Mon May 03, 2010 10:38 am
by Flack
That's pretty bad ass. I'm so verbose, it takes me 140 characters to say that I'm about to say something. Coding anything that does anything in that amount of space is impressive.

Posted: Mon May 03, 2010 4:18 pm
by Ice Cream Jonsey
bruce wrote:
Ice Cream Jonsey wrote:I will be outraged if Bruce doesn't win the Twitter Comp. I would like to say that I have not played any other entries yet, so my opinion is unvalued. But 337 million white spaces & Stiffy Makane? You've won.

How much of the game is included, Bruce?
Pretty much everything I've written so far...although the game arbitrarily ends when you get to Darkest Africa, but since you have the source, you can fix that.

What I have so far is probably 75-80% of the whole game.

Bruce
Bruce got second place in the TWIFCOMP. Congratulations, Bruce!

Posted: Mon May 03, 2010 4:25 pm
by pinback
?

Posted: Mon May 03, 2010 7:08 pm
by Ice Cream Jonsey
Someone else took first place. Explain your "?".

Posted: Mon May 03, 2010 7:31 pm
by bruce
Ice Cream Jonsey wrote:Someone else took first place. Explain your "?".
!

I think Pinback had been playing the winning entry.

I can't wait for my tasty tasty ramen.

Bruce

Posted: Tue May 04, 2010 6:47 am
by sgranade
Wait, wait, wait. Clearly we need to get your prize switched from ramen to a bowl of dry cheerios.