LINE (300,10)-(513,164):LINE (300,9)-(514,164):LINE (300,8)-(515,164):LINE (300,7)-(516,164)
PATTERN &H6666 'drawing of dotted lines between circles
LINE (295,41)-(266,61):LINE (305,41)-(334,61)
LINE (256,69)-(227,89):LINE (266,69)-(295,89)
LINE (334,69)-(305,89):LINE (344,69)-(373,89)
LINE (231,93)-(290,93):LINE (310,93)-(368,93)
LINE (188,117)-(217,97):LINE (227,97)-(256,117)
LINE (295,97)-(266,117):LINE (305,97)-(334,117)
LINE (373,97)-(344,117):LINE (383,97)-(412,117)
LINE (193,121)-(251,121):LINE (271,121)-(329,121):LINE (349,121)-(407,121)
LINE (149,146)-(178,125):LINE (188,125)-(217,146)
LINE (256,125)-(227,146):LINE (266,125)-(295,146)
LINE (334,125)-(305,146):LINE (344,125)-(373,146)
LINE (412,125)-(383,146):LINE (422,125)-(451,146)
LINE (154,150)-(212,150):LINE (232,150)-(290,150)
LINE (310,150)-(368,150):LINE (388,150)-(446,150)
PATTERN -1
FOR n=1 TO 15:b1=3:g(n)=n 'loop for initial yellow circles
IF n=1 THEN b1=2
CIRCLE (a(n),b(n)),9,b1
PAINT (a(n),b(n)),b1,b1
NEXT n
SAY TRANSLATE$("welcome to the world of the chinees triiangle.")
SAY TRANSLATE$("this game is similar to chi nees checkers and can be found on many restrant tables.")
SAY TRANSLATE$("the game consists of fore teen pegs, represented by orange circles,and one empty hole, represented by a black circle, in a triangle configuration.")
SAY TRANSLATE$("The game is played like checkers, except in a triiangular formation.")
SAY TRANSLATE$("A move is started by deepressing the left mouse button, once on a orange circle, and once on a black circle.")
SAY TRANSLATE$("The two circles, must be connected, by a dotted line, and separated, by a orange circle.")
DATA 4,11,13,15,6,13,4,6,1
DATA 2,7,12,14,10,9,8,5,3
DATA 1,4,11,13,15,6,13,4,6
FOR r1=1 TO 9:READ c1(r1):NEXT r1
FOR r2=1 TO 9:READ c2(r2):NEXT r2
FOR r3=1 TO 9:READ c3(r3):NEXT r3
FOR r4=1 TO 9 :r5=c1(r4):r6=c2(r4):r7=c3(r4)
CIRCLE (a(r5),b(r5)),9,2:PAINT (a(r5),b(r5)),2,2:CIRCLE (a(r6),b(r6)),9,2:PAINT (a(r6),b(r6)),2,2:CIRCLE (a(r7),b(r7)),9,3:PAINT (a(r7),b(r7)),3,3
FOR r8=1 TO 5500:NEXT r8:BEEP:NEXT r4
SAY TRANSLATE$("The object, is to leave only one peg on the board, and, in the original, empty hole.")
SAY TRANSLATE$("The ultimate challenge will be, to have eight pegs, on the board, and no, possible moves.")
SAY TRANSLATE$("This is extremely difficult, to accomplish.")
SAY TRANSLATE$("Leaving two or three pegs, on the board, can be considered, average.")
WINDOW CLOSE 5:RETURN
screentitle: 'sub for initial screen title
CLS:RANDOMIZE TIMER
SCREEN 3,320,200,3,1
WINDOW 7,,,1,3
WINDOW OUTPUT 7
FOR x=1 TO 30
FOR a=1 TO 3
PALETTE 4,RND(1),RND(1),RND(1)
COLOR 4,0
NEXT a
a=INT(RND(1)*20):b=INT(RND(1)*20):COLOR 3,4
IF a<5 THEN a=7
IF a>30 THEN a=28
IF b>19 THEN b=19
IF b<3 THEN b=3
LOCATE a,b:PRINT "Chinese Triangle"
FOR nit=1 TO 600:NEXT nit 'a dummy timer for compiler
COLOR 4,0:LINE (10,10)-(280,184),4,bf
NEXT x
COLOR 2,4:LOCATE 5,15:PRINT "Welcome"
LOCATE 6,13:PRINT "To The World"
LOCATE 7,16:PRINT "Of The"
LOCATE 8,11:PRINT "Chinese Triangle"
AREA (136,70):AREA (76,150):AREA (196,150):AREAFILL 1
LOCATE 23,3:INPUT"Enter any key to continue";kji$:CLS