Programmatic Posts Game - Tree of Souls - An Avatar Community Forum
Tree of Souls - An Avatar Community Forum
Go Back   Tree of Souls - An Avatar Community Forum » General Forums » Development

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-04-2011, 06:52 AM
Aaron's Avatar
Tsamsiyu
Aaron has no status.
 
Join Date: Jan 2011
Location: Seattle, WA
Posts: 509
Default Programmatic Posts Game

This forum's been too quiet. The binary and hex threads over in Forum Games have gotten some attention, so how about one-upping those with some bona fide geekiness?

Let's be nice to each other, please. No platform-specific languages, no formatting hard disks or making other dangerous system calls. Just write out some text. But do it in a way that ensures the reader must actually run your code in order to decipher your post!

Here's a relatively concise example in C to start things off:
Code:
#include <stdio.h>

int main(int argc, char* argv[])
{
    /*
     * This message in "U-ney-code" ;)
     */
    const char *msg =
        "nEYtIri neYTIRi neYtiRI neyTiRI neytIRI neYtIRi NeYTIRi NeYTIRI "
        "NeYTIRI nEyTiri neYTiRi neYtiRI neYTIri neYtiri neYtiRi neYTiRi "
        "NeYTIRI neyTiRI neYtiri NeYTIRI neyTiRI neYtIRI neYTiRi NeYTIRI "
        "nEyTIRI neyTIrI neYtiri neYTiri neyTIrI neYTIRi neYtiRi neYtiRi "
        "neYTIRi neyTiRI neYtIRi neYTIri NeYTIRI nEyTIRI neYtiri neyTIri "
        "neyTiRI neyTIri NeYTIRI nEYTiri neYTIRi neYtiRi neYTiRi NeYTIRI "
        "neyTiRI neYtIRI neyTIrI neYTiRi neYTIRi neYTiRI NeYTIRi NEYtIrI ";
    
    char c = 0;
    
    while (*msg)
    {
        if (*msg == ' ')
        {
            putchar(c);
            c = 0;
        }
        else
        {
            c = (c << 1) | ((*msg & 0x20) >> 5);
        }
        
        msg++;
    }
    
    return 0;
}
__________________

My Avatar fanfic | My 3D Avatar album | A bit about my profile picture.
Reply With Quote
  #2  
Old 03-04-2011, 07:47 AM
txen's Avatar
Pa'li Makto
txen living beyond the pale.
 
Join Date: Mar 2010
Location: Santa Clarita, CA
Posts: 344
Default

Well that was quite interesting. I was able to decipher the first few characters in my head, but before my head exploded I gave up and tried it over at codepad.org

Very well done. I don't think I'll be coming up with another contribution for a while though. Way too busy and it's bed time for me.
Reply With Quote
  #3  
Old 03-04-2011, 06:03 PM
Aaron's Avatar
Tsamsiyu
Aaron has no status.
 
Join Date: Jan 2011
Location: Seattle, WA
Posts: 509
Default

Code:
// C++
//
#include <stdio.h>

int main(int argc, char* argv[])
{
    // "Sully, just find out what the code-monkeys want." --Selfridge
    //
    const char *p =
        "SeLfridgE SeLfridgE SeLfRIDGE SeLfRidgE SeLfRidgE SeLfRidgE SelfrIdGE SelfrIDgE "
        "SelfRiDGe SelfRIdGe SelfRIdGE SeLfRIDGE SelfRiDGe SelfrIdGE SeLfRIDGE SelfRidge "
        "SelfrIdgE SelfRIdGe SelfrIDgE SeLfRIDGE SelfRIDGe SelfrIdGE SeLfRIDGE SelfRIDge "
        "SelfRidge SelfRIdGE SelfRIdGe SelfrIDGE SelfRIDGe SelfRIdGE SeLfRidgE SelfRidge "
        "SelfrIDgE SelfRIdge SeLFRiDgE SelFRIDge SelfRidge SelfRIdGE SelfRIdGe SelfrIDGE "
        "SelfRIDGe SelfRIdGE SeLfRidgE SelfRidge SelfrIDgE SelfRIdge SeLfRIDGE SelfRiDGe "
        "SelfrIDge SeLfRIDGE SelfRIDGe SelfrIdge SelfRIdGe SelfrIDge SelfRidge SelfRidGe "
        "SelfRIdGe SeLfRidGE SeLfRIDGE SelfriDGe SelfRIdGe SelfrIDge SeLfRidgE SeLfRidgE "
        "SeLfRidgE SeLfRIDGE SelFRIDgE SelfrIdGe SelfrIdGE SeLfRIDGE SelfrIdge SelfRiDGE "
        "SelfRIdGe SelfrIDgE SelfRIdGe SeLfRIdge SelfrIDge SeLfRIDGE SelfriDGe SelfRidge "
        "SelfrIdGe SelfrIDgE SeLfRIDGE SelfRIDge SelfRidge SelfRIdGE SelfRIdGe SeLfRidGE "
        "SeLfRIDGE SelfrIdGE SelfriDGE SelfRIdGe SelfRidgE SeLfridge SeLfRIDGe SeLFRiDgE ";

    for(char c=0;*p;*p^0x20?c=c<<1|(*p&0x20)>>5:putchar(c&0x7f),p++);

    return 0;
}
__________________

My Avatar fanfic | My 3D Avatar album | A bit about my profile picture.
Reply With Quote
  #4  
Old 03-05-2011, 12:32 AM
Isard's Avatar
Old Guard
Isard -- Wait, you do hear the voices right?
 
Join Date: Mar 2010
Posts: 3,416
Send a message via Skype™ to Isard
Default

The urge to do evil...
__________________
The Emperor protects
Reply With Quote
  #5  
Old 03-05-2011, 12:56 AM
Aaron's Avatar
Tsamsiyu
Aaron has no status.
 
Join Date: Jan 2011
Location: Seattle, WA
Posts: 509
Default

Code:
/*
 * C
 */
#include <stdio.h>

void f(const char *p,int l,int e)
{
    (l^1)?f(p+(e?l>>1:0),l>>1,!e),f(p+(e?0:l>>1),l>>1,!e):putchar(*p);
}

int main(int argc, char* argv[])
{
    f(".l..e iv dhtH\nee eru>>hT oodegt  uaw woy.o\n tnt eg . eruk onY uo",0100,0);
    return 0;
}
__________________

My Avatar fanfic | My 3D Avatar album | A bit about my profile picture.
Reply With Quote
  #6  
Old 03-05-2011, 02:44 AM
Human No More's Avatar
Toruk Makto, Admin
Human No More has no status.
 
Join Date: Mar 2010
Location: In a datacentre
Posts: 11,748
Default

Code:
/*
 * C
 */

#include <stdio.h>

int main()
{
  int n = 1, i, l = 1;
  
  while(l == 1)
  {
    if(n%10 == 0)
    {
      printf("Neytiri: YEAH, YEAH BABY, GET SUM!!!\n");
    }
    printf("Jake: ");
    for(i = 0; i < n; i=i+1)
    {
      printf("a");
    }
    for(i = 0; i < n; i=i+2)
    {
      printf("h");
    }
    printf(", Neytiri...\n");
    n++;
  }

  return 0;
}
__________________
...
Reply With Quote
  #7  
Old 03-05-2011, 04:04 AM
Aaron's Avatar
Tsamsiyu
Aaron has no status.
 
Join Date: Jan 2011
Location: Seattle, WA
Posts: 509
Default

Code:
/*
 * C
 */
#include <stdio.h>

void f(const char *p,int l,int e)
{
    (l^1)?f(p+(e?l>>1:0),l>>1,!e),f(p+(e?0:l>>1),l>>1,!e):putchar(*p);
}

int main(int argc, char* argv[])
{
    f("gos *at  J! e'akamsta!insowe* mewat PRs M,HNha t:D! OL LELICS!ESanth"
    "hi tpoese ns.... \n..  s.mmHmanem adsTh   dattiea rveor mcre ",0200,0);
    return 0;
}
__________________

My Avatar fanfic | My 3D Avatar album | A bit about my profile picture.
Reply With Quote
  #8  
Old 03-11-2011, 07:29 PM
Aaron's Avatar
Tsamsiyu
Aaron has no status.
 
Join Date: Jan 2011
Location: Seattle, WA
Posts: 509
Default

Code:
<?php
  // Best viewed black-on-white, as on codepad.org.

  $x =
    '<RQHY8-%7S,7,&+7+>S<,.#&GY8D;&8\\<ST,-.&K)QS)8T X0.S$N;H1'.
    '.@)FN1#TT,=S&-E)Q9V@<F)<GKT,\'@+<2\\<%F8Z&YN9SQQ=.,6C&H9C'.
    '<>\\F$C<S4<S,WCU(WXN1#PH)Q;T RT8LF8DSY8\\QR-3Q-.GCQ:.F&Y@'.
    'FCW,\'R%>N8"G9V8,P!C!#R-N>SQ9D3EKV 0(C<,^8-T(G6$GH!-E)<&G'.
    '\'O9NP%SQ9DC</.C&(\'YB9.%.=#:F[FRDX,\'7,YY-:T@&DKB#PUQ1.D'.
    '+&C!SQRS+)I*))))JWV2JU;EZU__^_Z_O]^S+)U*))))J];5=Y:J+]M__'.
    '_?_?U^\\2222222N4_*2JM$)UK:_^____W^\\222222BDJ+,V=+FAMN$1'.
    'D4;;[____OZ\\522222E(+CE $(A( RR8,&#[$1DD4[___]6BO222222('.
    '($DP$DP  "0($"99,+CY$124U__7]E72222BD-C")$"3844"S$A  K%@0'.
    '6W=W)RE:__O7>))))Y*AA(( :($&"A,!)"  (  QP8,VQ8\'[4[__]YEG'.
    '6)))04(*"" P0,#AHH,S$ 2 RRP8,&CQ8L3D4__V.OP8G@DH&B"9 F (,'.
    'F0#C"9"C0)(1 &FQ8,,V=B(22_??>Q2DE%L$,***!0(,AA(## $     R'.
    ':M6&&[N3$1D3$I^_S34 " ((+**$@)(AA ,D0$(38F($ 998LC=W=W=W)'.
    '2]_6>LGP$ B8&&R0( AP0(*$@9FA $F)R:9,&CQP8L[.1$1ZOJ\\,LG@$'.
    'D@(8&R@A1!8&@!($&@08"   PBL,&&[8W=W=G4_;Y=B\\$@ 1(K%D),88'.
    ' "#A,S04F!8:( @ 6$CQ88L[D[$I^WYED ), ! KEAM)*A0(,A9$,#P  '.
    '@P,&#[.&CQNC98L3]OEO52)""A)R:1(;"@A@A)$"!9:M6G()))))"SL6L'.
    '3M?+?KDB2(J D%CM(  "AP$"S$@L(W)B<WQ8W))R"8,7M?+?KD2$FDS@D'.
    '[64"A1Q$F0  8M8G(U*5B<B(R1 DKVOS7))R9$@ATU]H$"C"08F(D%[25'.
    'M]651$Y@,=UO=^*)Y)#@R$@2($E08( A)"99.I6!9/S:;E(,# )U>;YKD'.
    'D;(004($B"6$($"10  89,BJDC]96  3MR! @KJOEO22DAPD9Q,\'CA(8'.
    '($@P$QL,GDZ,$"A2 &[2$Q0IK^MS7)1RP0(1,+"D((,$B@)RB8.))R%Y.'.
    'F(1B<W992MW^\\52RC"A(8 F9F0(,* !6&S=G(BP,G(B(B<W)L%"5I[/?'.
    'ED\\0($"10(,"D084(1,&S=B<WQ66R8, CAQN[9";_^S+)-% 9 "A!($E'.
    ')$& 6&&[$1NCQ(&P:9,&#[NC#1L2W_Y)BT*   8($@)" AA$AL8W)1.&C'.
    '9,+R:M8G(B80H:O_S[N3O  $(A) E9"#) 9Q8,)1.&SL6&&[$)1V$FM__'.
    'SCQ8Z)$"A09B H,AA$@88L35DCQ.V)B(1$A9AD&__//C1Z?+R:1 $ 8M('.
    '+#[$1JB(W=B(B(B$18,RJ__?>KU[_6FU"0   8Q.1M5B(B<G(B(BDD<,C'.
    'I]__G\'QH^O;1($*3   L$1$1D[$1$1$12J58G4;__O\\(L^O, "AR,S,'.
    '3 CQPN3.YN3$12JMB()M^__Y1NN?%"@09"16$RB=,V=G(R)B()U6)IVV_'.
    '__RS$^^M,$ !0N[$1B(B(2$1$1DDDDD4[_?_O\\X*U^R\'! H,3@E1J__'.
    'M2$)))UJV__[_S[2>_E&AL)  0 $" 88W)B()))))U^_W__*>"W_7_($"'.
    'Q<W=&#[$12DDDDD:;___[_7>)U_U_($RB=G(IV6))))UVV___^_+Q+B^_'.
    '^_@$  1 D%C)2222JMM___?__KX=]?__7@,S,!(&V)B())UV____>_?)>'.
    ']_Z__M $"!0(+V)BDD:[___]_^_J.?__^__SL,&CA=GDD4;__OM]___OE'.
    'X[_W?J__$1DD4;;;;;;;;;[_M_?U\\__?GZ_/&;QJ?)22JMMMMM]_;_O2'.
    'B__;7W__Q8FEQP8W=B()IVVVV^_]_5[\\';

  $y = -1;
  $z = 3066;

  function f()
  {
    global $x, $y;

    $y++;

    return ((ord($x[$y / 6]) - 32) >> ($y % 6)) & 1;
  }

  while ($z--)
  {
    echo chr(
      f()?(f()?77:(f()?78:(f()?43:(f()?(f()?(f()?(f()?114:100):(
      f()?116:(f()?46:(f()?102:80)))):58):126)))):(f()?(f()?(f()
      ?79:(f()?55:(f()?(f()?101:(f()?(f()?(f()?117:108):99):111)
      ):(f()?32:(f()?054:(f()?45:(f()?98:67))))))):68):(f()?(f()
      ?(f()?(f()?10:(f()?(f()?(f()?110:105):(f()?(f()?(f()?(f()?
      122:119):104):(f()?(f()?83:69):(f()?107:89))):115)):(f()?(
      f()?(f()?112:109):(f()?(f()?(f()?52:50):(f()?65:54)):(f()?
      (f()?40:33):(f()?49:41)))):(f()?97:(f()?39:(f()?72:121))))
      )):36):56):(f()?(f()?90:73):(f()?61:63)))));
  }
?>
__________________

My Avatar fanfic | My 3D Avatar album | A bit about my profile picture.
Reply With Quote
  #9  
Old 03-12-2011, 12:32 AM
LOVEavatar's Avatar
Tsahik
LOVEavatar has a urge to watch Avatar again
 
Join Date: Apr 2010
Location: Sweden-Uppsala
Posts: 2,066
Send a message via MSN to LOVEavatar Send a message via Skype™ to LOVEavatar
Default

What the...


*hides away from thread*





I've never had any kind of programming education or skill
__________________

Reply With Quote
  #10  
Old 03-12-2011, 03:31 AM
Human No More's Avatar
Toruk Makto, Admin
Human No More has no status.
 
Join Date: Mar 2010
Location: In a datacentre
Posts: 11,748
Default

That is... AWESOME!

I'm going to have to think of a response now... maybe when I'm not so tired and emotional.
__________________
...
Reply With Quote
  #11  
Old 03-12-2011, 05:05 AM
Aaron's Avatar
Tsamsiyu
Aaron has no status.
 
Join Date: Jan 2011
Location: Seattle, WA
Posts: 509
Default

Code:
1 REM
2 REM BASIC
3 REM
10 PRINT "<QUOTE=LOVEavatar>"
20 PRINT "What the..."
30 PRINT "*hides away from thread*"
40 PRINT "I've never had any kind of programming education or skill :P"
50 PRINT "</QUOTE>"
60 PRINT
70 PRINT "Hey, *you* came *here*, not the other way around. ;)"
80 PRINT "Anyway, it's never too late to wreck your brain by adding"
90 PRINT "coding skills to it!"
100 PRINT
110 PRINT "<QUOTE=Human No More>"
120 PRINT "I'm going to have to think of a response now... maybe when"
130 PRINT "I'm not so tired and emotional."
140 PRINT "</QUOTE>"
150 PRINT
160 PRINT ":D Pity these damned online interpreters don't support color"
170 PRINT "control sequences (at least... I don't *think* they do..."
180 PRINT "hmmm...)."
190 REM
200 REM How to escape BBCode properly next time?? <loses more hair>
210 REM
__________________

My Avatar fanfic | My 3D Avatar album | A bit about my profile picture.

Last edited by Aaron; 03-12-2011 at 06:10 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Visit our partner sites:

      pandoraworld.ru



All times are GMT +1. The time now is 08:57 PM.

Based on the Planet Earth theme by Themes by Design


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.
All images and clips of Avatar are the exclusive property of 20th Century Fox.