Path: utzoo!utgpu!cs.utexas.edu!swrinde!zaphod!maverick.ksu.ksu.edu!unmvax!pprg.unm.edu!topgun!mustang!nntp-server.caltech.edu!antonyc From: antonyc@nntp-server.caltech.edu (Bill T. Cat) Newsgroups: alt.sources Subject: Re: VI SOLVES MAZE (update) Message-ID: <1991Jan15.062435.22908@nntp-server.caltech.edu> Date: 15 Jan 91 06:24:35 GMT References: <2164@otc.otca.oz> Organization: California Institute of Technology, Pasadena Lines: 16 gregm@otc.otca.oz.au (Greg McFarlane) writes: >Anyone who can't get the maze.c file to compile, get a new compiler. i was playing with the maze.c thing, and the problem with it on most systems is that it is not ansi compatible. so, the nerd that i am, i fixed it for ansi. it's not quite as pretty, but hey, it works. 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