view runtime/macros/maze/mazeansi.c @ 25361:7784e9d84ff6

Added tag v8.2.3217 for changeset cb92a49cc8e7ae8b9fc47e54ed72ee47ec8f396d
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Jul 2021 14:30:04 +0200
parents 3fc0f57ecb91
children
line wrap: on
line 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<<27<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}