*NAME MAXIT  MAXIT FROM PET * ADAPTED TO IPM PC BY PATRICK LEABO + 3-20-82 TUCSON ARIZONA . M100 version 6/1/88.1 by Jay Holovacs * Z88 VERSION -- PHIL WHEELER 12/88  Lݨ A-Z V T\L [ BD(7,7),AV(64),NT(7) ` N= 0 7: NT(N): j 49,51,53,54,56,58,60,61 &~A=0:_BOLD:: "THE GAME OF MAXIT" , "Do you want instructions? ";: txK:  KS$="Y" KS$="y" tbH ": "1 or 2 players? ";: txK  KS$:NP=(KS$):  NP=1 dXD  NP<>2 t\D , "What is your name #1";P1$:P1$=P1$,6) 6 : "What is your name #2";P2$:P2$=P2$,6): dbD 7P2$= "Z88": "What is your name ";P1$::P1$=P1$,6) : TxI  T\L  K=1 64:AV(K)= K:  K=64 1 -1: PC  P1=1+(K*(1)) J=AV(P1)-1 ) P10 tVE ; 0,7)39," ");: 0,7);: 2+(S2-S1) dfE,dpE,dzE D 0,7)39," ");: 0,7)"Do you want to play again? ";:C$=: C$  "Y"=C$ "y"=C$ dbD _BOLD : . 0,0)P1$;" won by ";(S1-S2);" points": / 0,0)"It's a tie !! ": / 0,0)P2$;" won by ";(S2-S1);" points ": 9 DRAW BOARD POSITION I,J IN MODE MD (1=RED,2=BLACK) PC=BD(I,J) LC=I*40+J*3 .6 PC=100 J*3,I)"**";:C1=I:C2=J: DTF %@ PC=-100 J*3,I)" ";: DTF J J*3,I)" "+(PC),2); T J*3+1,I);: ^ PL=2 tFF 'hFL= 600: J=0 7:FL=FL+BD(C1,J): r FL=0 |NM$=P1$:DX=1:DY=0: tdF: &FL=600: I=0 7:FL=FL+BD(I,C2):  FL=0 NM$=P2$:DX=0:DY=1: tdF: Y=C1:X=C2:FX=1  NP=2 PL=1 dBF D: trG:_REV: 28,5)NM$+"'s ",11);:_REV: TLH: DXG  trG: FX dLF,dVF =: trG:_REV: 28,5)NM$+"'s ",11);:_REV: d`F  " ":  t|G I=Y:J=X: TDF:C$=  C$=(3) dHE  C$<>" " DDG OX=X:OY=Y Y=Y+DY: Y>7 Y=0 X=X+DX: X>7 X=0 !PT=BD(Y,X): (PT)=100 THG &MD=1:I=OY:J=OX: TDF 0MD=2:I=Y:J=X: TDF : djF D C$<>(13) djF N (BD(Y,X))=100 djF X SCORE IT b 8l NP=1 PL=2 MD=2:I=Y :J=X: TDF: DL=1 1500: &qMD=1:I=C1:J=C2:BD(I,J)=-100: TDF )vI=Y:J=X:PT=BD(I,J):BD(I,J)=100: TDF  PL=1 S1=S1+PT  PL=2 S2=S2+PT  trG " 28,4)"LAST: "36,4);PT;" ";  dPG:  _BEEP: > 28,2)P1$;": "36,2)(S1): 28,3)P2$;": "36,3);(S2):  SCREEN INSTRUCTIONS  $  COMPUTER PLAYER ALGORITHM < MT=-100:GG=-1: A1=0 7:PC=BD(A1,C2): (PC)=100 tXH MX=-100: A2=0 7 ;  A2<>C2 PK=BD(A1,A2): PK<>-100 PK>MX MX=PK:SV=A * A2 4 MX<>-100 DHH > PC>MT MT=PC:GG=A1: tXH H GG<0 GG=A1 4R A2=0 7:PQ=BD(A2,SV): PQ=-100 A2=A1 tNH 2\MY=-100: A3=0 7:PW=BD(A2,A3): A3=SV DpH f (PW)<>100 PW>MY MY=PW p A3 z MY=-100 MY=0 (DT=PC-MX+PQ-MY: DT>MT MT=DT:GG=A1  A2  A1:Y=GG: (: 15,0)(1)"U";"M A X I T"(1)"U"  "The object of Maxit is to score as many": "points as possible between two players":"or one player against the computer."  "You get nts by using thpace bar":"to move the cursor along the row or":"column marked ** and hitting RETURN":R$=: "Remember however that on the next move,":"your opponent gets to select from the":"row/column that the marker is placed in,":" SO YOU MUST PLAN AHEAD CAREFULLY..." H"Player 1 moves Horizontally, player 2":"moves Vertically":R$=: *8 28,0)(1)"U";"M A X I T";(1)"U":  KS$=:KS=(KS$): $ NN=0 (‘$,2)):NNN%=(1):: _BEEP  (7);  _BOLD  (1)"B";  h_REV r (1)"R"; |