mz.c

ma6nrr at bath63.UUCP ma6nrr at bath63.UUCP
Sat Nov 22 09:49:18 AEST 1986


I find the maze looks better if you alter the print () routine:

...

         if( leftwall(cell) )
             ch = '|';
         else
         {   ch='_';
             if( !botwall(cell) && !botwall(neighbor(cell, LEFT)) )
             ch='.';
         }
         putchar(ch);

(Actually my version uses neighbour instead of neighbor throughout)
This alteration only prints full stops not next to underlines.

(I hope this has SOME approval :-)



More information about the Comp.sources.unix mailing list