From 2dafcafec9b44ed95233fceffb79025bfc36d5e6 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:26:30 -0800 Subject: [PATCH] Remove 1987/lievaart alt code - had no purpose --- 1987/lievaart/README.md | 14 -------------- 1987/lievaart/lievaart.alt.c | 20 -------------------- 2 files changed, 34 deletions(-) delete mode 100644 1987/lievaart/lievaart.alt.c diff --git a/1987/lievaart/README.md b/1987/lievaart/README.md index 07b1a2080..916cfd554 100644 --- a/1987/lievaart/README.md +++ b/1987/lievaart/README.md @@ -4,9 +4,6 @@ make all ``` -There is [Alternate code](#alternate-code) available for if you have an old -enough compiler. - ## To use: @@ -26,17 +23,6 @@ To see what it would have looked like without the size restrictions: ``` -## Alternate code: - -If you have an old enough compiler you might wish to try using it. To use: - -```sh -make alt -``` - -Use `./lievaart.alt` as you would `./lievaart` above. - - ## Judges' remarks: We believe that you too will be amazed at just how much power Mr. Lievaart diff --git a/1987/lievaart/lievaart.alt.c b/1987/lievaart/lievaart.alt.c deleted file mode 100644 index 0a2473823..000000000 --- a/1987/lievaart/lievaart.alt.c +++ /dev/null @@ -1,20 +0,0 @@ -#define D define -#D Y return -#D R for -#D e while -#D I printf -#D l int -#D C y=v+111;H(x,v)*y++= *x -#D H(a,b)R(a=b+11;au){R(w=i=0;i<4;i++)w+=(m=v[h[i]])==f?300:m==q?-300:(t=v[ih[i]])==f?-50 -:t==q?50:0;return w;}H(z,0){if(GZ(v,z,f,100)){c++;w= -S(d+1,n,q,-b,-bw);if(w>bw -){zb=z;bw=w;if(w>=b||w>=8003)Y w;}}}if(!c){bz=0;C;Y-S(d+1,n,q,-b,-bw);}bz=zb;Y -d>=u-1?bw+(c<<3):bw;}main(){R(;t<1100;t+=100)R(m=0;m<100;m++)V[t+m]=m<11||m>88 -||(m+1)%10<2?3:0;V[44]=V[55]=1;V[45]=V[54]=2;I("Level:");s(u);e(lv>0){do{I("Yo\ -u:");s(m);}e(!GZ(V,m,2,0)&&m!=99);if(m!=99)lv--;if(lv<15&&u<10)u+=2;I("Wait\n") -;I("Value:%d\n",S(0,V,1,-9000,9000));I("move: %d\n",(lv-=GZ(V,bz,1,0),bz));}}GZ -(v,z,f,o)l*v;{l*j,q=3-f,g=0,i,h,*k=v+z;if(*k==0)R(i=7;i>=0;i--){j=k+(h=r[i]);e( -*j==q)j+=h;if(*j==f&&j-h!=k){if(!g){g=1;C;}e(j!=k)*((j-=h)+o)=f;}}Y g;}