home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2589 < prev    next >
Internet Message Format  |  1991-01-22  |  2KB

  1. From: israel@mitisft.Convergent.COM (Paul Israel)
  2. Newsgroups: alt.sources
  3. Subject: Re: VI SOLVES MAZE (and lies about it)
  4. Message-ID: <1769@mitisft.Convergent.COM>
  5. Date: 18 Jan 91 18:23:12 GMT
  6.  
  7. In article <1991Jan17.155044.8289@cbnewsd.att.com> timborn@cbnewsd.att.com (timothy.d.born) writes:
  8. %In article <14885@sunspot.megatest.UUCP>, ivan@megatest.UUCP (Ivan Batinic) writes:
  9. %>     But the real joke that seems to be escaping some of you is the
  10. %> original form of the source:
  11. %> 
  12. %> 
  13. %>     char*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",&
  14. %>     C)            ;--            E;J             [E            ]=M
  15. %>     [E   ]=  E)   printf("._");  for(;(A-=Z=!Z)  ||  (printf("\n|"
  16. %>     )    ,   A    =              39              ,C             --
  17. %>     )    ;   Z    ||    printf   (T   ))T[Z]=Z[A-(E   =A[J-Z])&&!C
  18. %>     &    A   ==             M[                                  A]
  19. %>     |6<<11<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}
  20. %> 
  21. %> 
  22. %> Which forms a maze if you look far away and squint your eyes.
  23. %> Therefore, the poster was not lying, it is a "Maze C-Program" in the 
  24. %> truest possible way:
  25. %> 
  26. %>     a) It attempts to print a maze
  27. %>     b) It looks like a maze in source
  28. %>     c) Parsing the source is like solving a maze
  29. %> 
  30.  
  31. Actually, the source forms the word "maze", using a combination of
  32. large and small lettering, ie MaZE. I kinda thought THAT was the real
  33. joke.
  34.  
  35. -- 
  36. Paul Israel
  37. Renegade Systems, 434 South Bernardo Ave, #2 Sunnyvale, CA 94086
  38. Disclaimer: "Who, me? I wasn't even there!"
  39. ctnews!mitisft!hamster!israel
  40.