Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}Beer Hunter wrote:It seems that we have reached the deadline. Here's my entry.
system("cls") on unix? Eeep! Skipped that part deliberatelyexomo wrote:@gamma: very nive code. ... and you don't clear the screen.
Togra wrote:OMG Gamma, get a job! Even though I generally don't like obfuscated code, this really is hilarious.
gamma wrote:Hilarious? Why?
gamma wrote:Isn't it obfuscated?
#include <stdio.h>
#include <stdlib.h>
unsigned b;
char JOKE[100] = "#&*^(*=@#^*_: &%(#%)(#&#%@&(*: Don't run me on a c-compiler!";
void C(unsigned x)
{
if(!(b&x))
if(((b>>10)&(x>>1))==(x>>1)||((b>>10)&(x>>1))==0)
{
puts("Win!");
exit(0);
}
}
int main(void)
{
b+=1?1022:puts(JOKE) < 0 ,puts("");
for(b&=~(0xf<<19);((b>>19)&0xf)<9;b+=(1<<19),((b>>19)&0xf)%3?1:puts("|"))
printf("|%c",b&(2<<((b>>19)&0xf))?' ':JOKE[(b>>(10+((b>>19)&0xf)))&(022/11)]);
printf("Player%2d:",b&3/2);
while (b&1022)
{
b&=~(0x1ff<<23);b|=(getchar()<<23);
if(b&(1<<31)) break;
if(((b>>23)-'0')>=1&&((b>>23)-'0')<=9&&(b&(1<<((b>>23)-'0'))))
{
b^=(b&(1<<((b>>23)-'0')));
((b^=1)&1)&&(b|=(0x200<<((b>>23)-'0')));
C(14);
C(112);
C(146);
C(168);
C(292);
C(546);
C(584);
C(896);
puts("");
for(b&=~(15<<19);((b>>19)&0xf)<9;b+=(1<<19),((b>>19)&0xf)%3?1:puts("|"))
printf("|%c",b&(2<<((b>>19)&0xf))?' ':JOKE[(b>>(10+((b>>19)&0xf)))&1]);
printf("Player" "%2d:", b&1);
continue;
}
}
return 0;
}Obfuscated CodeEpison07 wrote:Hummm, I may sound stupid, but... What exactly is obfuscated code? When I first read it, I figured it would be like the shortest amount of code to get the job done...but viewing the above code...I am kind of lost. And that whole joke code thingy...totally blew me away.
Someone explain obfuscate, and/or obfuscate-optimized???
Lil lost.
-Ep
Users browsing this forum: No registered users and 1 guest