Path: utzoo!utgpu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!dali.cs.montana.edu!decwrl!megatest!ivan From: ivan@megatest.UUCP (Ivan Batinic) Newsgroups: alt.sources Subject: Re: VI SOLVES MAZE (and lies about it) Keywords: joke maze dumb idiots Message-ID: <14885@sunspot.megatest.UUCP> Date: 16 Jan 91 22:04:40 GMT References: <141293@pyramid.pyramid.com> Reply-To: ivan@sunspot.UUCP (Ivan Batinic) Organization: Megatest Corporation, San Jose, Ca Lines: 57 First of all, the maze program does infact compile on a sun/3 under SunOS 3.5; if one manually cb's the source, one sees the pgm: char*M,A,Z,E=40,J[80],T[3]; main(C){ for(M=J+E,*J=A=scanf("%d",&C); --E;J[E] = M[E] = E) printf("._"); for(;(A -= Z = !Z) || (printf("\n|"), A = 39 ,C--); Z || printf (T)) T[Z] = Z[A - (E = A[J - Z]) && !C & A == M[A] | 6 << 11 < rand()|| !C &!Z ? J[M[E] = M[A]] = E, J[M[A] = A - Z] = A, "_." : " |"]; } The above is pure 'C'onfusion to hide the simplicity of the pgm. If you run it, and give it an integer input, it prints n times: ._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ |_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._| | But the real joke that seems to be escaping some of you is the original form of the source: char*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",& C) ;-- E;J [E ]=M [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|" ) , A = 39 ,C -- ) ; Z || printf (T ))T[Z]=Z[A-(E =A[J-Z])&&!C & A == M[ A] |6<<11<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Email: {sun,decwrl,fortune,pyramid}!megatest!ivan Disclaimer: All opinions expressed herein are my own, do not necessarily reflect those of my employer, and, are quite possibly worthless.