Mercurial > vim
view runtime/macros/maze/maze.c @ 8535:6ec2cb295acd
Added tag v7.4.1557 for changeset 485d4d8a97f6a68fbf8234632a8069414ba60438
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 Mar 2016 18:15:05 +0100 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
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,"_.":" |"];}