3Hy tu>F >DÿÿU~  2^É 3 ¡ ***FOUR*** a program by Bruce Pratt April 1982  ·:ƒ  ’ 1160 () ƒ"THE OBJECT OF THE GAME IS TO GET " 2 ƒ"FOUR IN A LINE" < ƒ "THE FOUR SYMBOLS MAY BE" F' ƒ "HORIZONTAL,VERTICAL OR DIAGONAL." P. ƒ"COLUMNS ARE FILLED FROM THE BASE UPWARD." Z' ƒ"IN PLAY, ONLY THREE KEYS ARE USED" d* ƒ" > MOVES THE POINTER RIGHT" n) ƒ" < MOVES THE POINTER LEFT" x+ ƒ" SPACE BAR DROPS A MARKER TO" ‚/ ƒ" THE BASE OF THE SELECTED COLUMN" Œ Œ T(11),S(44),N(7) – 170   Š I=1 ™ 1000:‹ I ª' M1$="HIT ANY KEY TO CONTINUE":’ 1090 ´ „ Þ="" ‰ 180 ¾# E=0:F=0:G=0:Š A=1 ™ 44:S(A)=0:‹A È" ·:ƒ:ƒ ›(12);"FOUR IN A ROW":ƒ:ƒ Ò ƒ ›(7);"SCORES":ƒ Ü ƒ "YOU";›(9);S1 æ ƒ "ME";›(9);S2 ð ƒ"DRAWN";›(9);S3:ƒ:ƒ ú ˜  ± 0,16  L=-4006  ” 134,133,132,131 "% Š T1=1 ™ 13: „ T1/2=Í(¼(T1/2)) ‰ ˜ , “ A,B:Š C=1 ™ 28 š 4 6 „ T1=1 ‰ 340 @ Ÿ L,133:Ÿ L+29,134 J Ÿ L+C,A:Ÿ L+C+3,B T ‹ C:L=L+64:‹ T1 ^" W=36:Š C=1 ™ 7:N(C)=W:W=W+1:‹ C h R=-4008:C=4 r) S4=S1+S2+S3:„ S4/2 <> Í(¼ (S4/2))‰ 660 | M1$="MY MOVE":’ 1070 † „ G<>0 ‰ G=0: 160  V=0:X=0:Y=0:Z=0 š Š J=1 ™ 7:C=C+1:„ C>7 ‰ C=1 ¤ P=R+C*4:„ N(C)>0 ‰ ’ 820 ® „ F<>0 ‰ ‹*J 620 ¸ ‹ J  „ X<>0 ‰ C=X: 620 Ì „ Y<>0 ‰ C=Y: 500 Ö „ Z<>0 ‰ C=Z: 500 à C=¼ ( Ì*7+1):„ N(C)<1 ‰ 480 ê V=V+1:„ C<>4 ³ V<5 ‰ 480 ô „ N(C)<8 ‰ F=0: 620 þ „ V< 10 ‰ 580  „ Í(V)/3=Í(¼(Í(V)/3)) ‰ M=1  M1$="NOW WHAT DO I DO":’ 1090  „ V<21 ‰ 580 & Š A=1 ™ 500:Q=¼(Ì*940-4084) 0 J=¼(Ì*222+33):Ÿ Q,J : ‹ A:E=1: 800 D$ N(C)=N(C)-7:Z=0:’ 820:N(C)=N(C)+7 N „ F<>0 ‰ F=0:„ V<9 ‰ 480 X „ Z<>0 ‰ Z=0:„ V<6 ‰ 480 b „ X<>0 ‰ X=0: 480 l( X=R+63+C * 4 + 128 * ¼((Í(N(C)-C))/7) v' Š B=1 ™ 2:Ÿ X+B,137:Ÿ X+B+64,136:‹ B € S(N(C))=5:N(C)=N(C)-7 Š8 „ F<>0 ‰ M1$="I WIN":’ 1090:Û 8;5;3;8:S2=S2+1: 160 ” M1$="YOUR MOVE":’ 1070 ž „ G<>0 ‰ G=0: 160 ¨ P=R+C*4:Ÿ P,135:Ÿ P+1,138 ²& K1$=Þ:K=Å(K1$):„ K=44 ´ K=46 ‰ 720 ¼ „ K=32 ‰ 760 Æ 690 Ð „ K=46 ³ C<7 ‰ C=C+1 Ú „ K=44 ³ C>1 ‰ C=C-1 ä Ÿ P,32:Ÿ P+1,32 î 680 ø! L1=(Í(N(C)-C))/7:„ L1<0 ‰ 680  X=P+63+¼(L1)*128  ' Š A=1 ™ 2:Ÿ X+A,129:Ÿ X+A+64,130:‹ A  S(N(C))=1:E=0:’820  5 „ E<>0 ‰ M1$="YOU WIN":’ 1070:Û 1,6:S1=S1+1:160 * N(C)=N(C)-7: 380 4 P=R+C*4:Ÿ P,135:Ÿ P+1,138 > Š A=0™ 11:T(A)=0:‹ A H I=0:O=N(C) R Š U=O ™ O+21 š 7:„ U>42 ‰ 870 \ T(I)=T(I)+S(U) f ‹ U:I=I+1 p K=C-3:„ K<1 ‰ K=1 z Š A=K ™ C+3 „ „ A>4 ´ A>C ‰ 940 Ž+ Š B=A ™ A+3:T(I)=T(I)+S(O-C+B):‹ B:I=I+1 ˜! W=O-(C-A)*8:„ W<1 ´ W>18 ‰ 940 ¢+ Š D=0 ™ 3:T(I)=T(I)+S(W):W=W+8:‹ D:I=I+1 ¬ „ A>7 ‰ 980 ¶ „ A<4 ´ A21 ‰ 980 Ê+ Š D=0 ™ 3:T(I)=T(I)+S(W):W=W+6:‹ D:I=I+1 Ô ‹ A Þ! Š H=0 ™ I:D=T(H):„ D=4 ‰ E=1 è „ D=15 ‰ F=C ò „ D=10 ‰ Z=C ü „ D=3 ‰ X=C  „ H<>0 ³ D=2 ‰ Y=C  ‹ H  Ÿ P,32:Ÿ P+1,32 $ • . Š A=1 ™ 7:„ S(A)=0 ‰ ‹*A 1090 8 ‹ A:M1$="ITS A DRAW":G=1 B ± 0,16:ƒ [A50 32]; L ƒ [A20 8];M1$;ß(13); V „ M=0 ‰ 1130 `$ Š D=1 ™ 300:‹ D:M=0:M1$="": 1090 j Ÿ -3124,32 t „ G<>0 ‰ S3=S3+1 ~ • ˆ Ÿ -2032,0 ’ “(1230)B œ Š A=-2031 ™ (-2032+159) ¦ “ B ° Ÿ A,B º ‹ A Ä • Î. ” 0,0,0,0,0,0,0,0,24,24,36,36,66,66,129,129 Ø. ” 129,129,66,66,36,36,24,24,0,0,0,0,0,0,0,0 â& ” 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,255 ìD ” 128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,255 ö$ ” 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 D ” 128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128  ' ” 1,1,1,1,1,1,1,1,1,1,17,25,13,7,3,1 4 ” 255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0 4 ” 0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255 (D ” 128,128,128,128,128,128,128,128,128,128,136,152,176,224,192,128 ÿÿFOUR€227,227,227,195,231,127,115,72,100,103,112,8,31,224,0 n= ” 225,227,22