[comp.sources.misc] v04i110: An amazingly small C-program

tromp@cwi.nl.UUCP (John Tromp) (10/01/88)

Posting-number: Volume 4, Issue 110
Submitted-by: "John Tromp" <tromp@cwi.nl.UUCP>
Archive-name: mazemaze

[This one should have been entered in the Obfusticated C contest.  ++bsa]

Run this C-program and enter a number. Ain't that amazing ?
John Tromp (tromp@piring.cwi.nl)

char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
--            E;             J[              E]             =T
[E   ]=  E)   printf("._");  for(;(A-=Z=!Z)  ||  (printf("\n|"
)    ,   A    =              39              ,C             --
)    ;   Z    ||    printf   (M   ))M[Z]=Z[A-(E   =A[J-Z])&&!C
&    A   ==             T[                                  A]     
|6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}