diff --git a/1985/shapiro/.gitignore b/1985/shapiro/.gitignore index e7e057d8a..9912ed2e4 100644 --- a/1985/shapiro/.gitignore +++ b/1985/shapiro/.gitignore @@ -1,2 +1 @@ shapiro -shapiro.alt diff --git a/1985/shapiro/Makefile b/1985/shapiro/Makefile index 8838f2dab..db2172a0b 100644 --- a/1985/shapiro/Makefile +++ b/1985/shapiro/Makefile @@ -112,8 +112,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= ${PROG}.alt.o -ALT_TARGET= ${PROG}.alt +ALT_OBJ= +ALT_TARGET= ################# diff --git a/1985/shapiro/README.md b/1985/shapiro/README.md index 6b5534440..b0bb3ec5f 100644 --- a/1985/shapiro/README.md +++ b/1985/shapiro/README.md @@ -18,8 +18,7 @@ make all ## Judges' remarks: As submitted, this program was 3 lines (2 of defines and 1 of code). -To make news & mail happy we split the last line into 7. The file -[shapiro.alt.c](shapiro.alt.c) is the original version. +To make news & mail happy we split the last line into seven lines. This program was selected for the 1987 t-shirt collection. diff --git a/1985/shapiro/shapiro.alt.c b/1985/shapiro/shapiro.alt.c deleted file mode 100644 index 43821bb7e..000000000 --- a/1985/shapiro/shapiro.alt.c +++ /dev/null @@ -1,3 +0,0 @@ -#define P(X)j=write(1,X,1) -#define C 39 -int M[5000]={2},*u=M,N[5000],R=22,a[4],l[]={0,-1,C-1,-1},m[]={1,-C,-1,C},*b=N, *d=N,c,e,f,g,i,j,k,s;main(){for(M[i=C*R-1]=24;f|d>=b;){c=M[g=i];i=e;for(s=f=0; s<4;s++)if((k=m[s]+g)>=0&&k=16!=M[k]>=16))a[f++ ]=s;if(f){f=M[e=m[s=a[rand()/(1+2147483647/f)]]+g];j=jb++?b[-1]:e;}P(" ");for(s=C;--s;P("_"))P(" ");for(;P("\n"),R--;P("|"))for(e=C;e--;P("_ "+(*u++/8)%2))P("| "+(*u/4)%2);}