P. 1
Livro de Jogos em MSX

Livro de Jogos em MSX

|Views: 90|Likes:
Published by MSXLivros
http://msxlivros.blogspot.com/
http://msxlivros.blogspot.com/

More info:

Published by: MSXLivros on Nov 13, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

04/15/2014

pdf

text

original

LIVRO IDlE J10GO,S, tE,M ,MSX

.Ji,rn, IGregory

LIVR,Q' DE J10GOS EM MSX

ltaduC40 ~ ad!lpla'rao dc' RONAL DO ssaoro DE BIASW

EDITORA1:LUTECIA

lInlia ,orWllW i"gli!lt!

THE MSX GAMES ROOK

Direioos dI:: JI1!Ib]iC!il~o ad.uiw I.m!I I:llIg:IJ" 1i'O~ '110 1I!ra:§lm ,adiquiridwi pillsJ

EDrroRA.. LUTECIA LTM

Rua A!tgtn'1illia rn - 2002.1 Rio de .Jutdm,RJ - m.~ "IHt-J668 'Que se ~ IIpl!llpriodade flbriria desb! '1Rdrl!t!Q

PEDlOOSPlEtO RfiEM'BOLSOIil'OSlA-L em Poslail ,231.052. - Ilia ,~ jan~iD"fll '10 ~. 20922

,JOgUIS de'Tat,o

E Mar:ie Ce(csle'; Um jogo ,de wentur,a insplrado em urn

j:ORlOSO n,avw'-/Qn.IQ-sma. 19

a Diga" Mestr,e: Um Jogo ,de adiv,ili'/ul¢O' em' r,plft (J$N!SfJostu

;ro pod'ern Bier ~''s;m .'. 011 "~l1iio "'. 33:

31 ,Eu Aicl!1so: :U;n j()IO de' de'leli~e -'i'U' qUSlllooB I,ento' d~c-Qb'ir

,q,gem e 0' crim~mM(J'. 4(11

,JlO,IOI c .. lwiieos

4f Star Tn::k ;B'11!renie ,05 perig>fHOlS k,lf'n,go,rI$ em ,Ulntli b{]lalha

de 'lIidQ OU flUme. 45

S 'Super Break,ollt; 0' '(!()I1Re.citi.(J' jogo de bFeakout COIn urns

,~ao JHlm 0 l,gf1f(Jnho df1 raquete'. ',6

6, LabUinill: Teme elloo,,:tf(J1' ,lI sulda de ,gm lubirinto'

frJdlme,nsional fl temp" de esc-llpar ,de' l/'m' toueo. 60

JDIOB"1I1i111 mUSP'eDQU

'1D>amu: Un! I'(ibu/~ro de; lal'lmas ,COl'm' veri/ic.Q¢o dO'S taJfce3. fi,7

8 XiilIdlre:z:: Urn trlOu.ielf'O' ,m mdrelcQ,w 'II,(N'i,fro'fl¢io dM tam:u

e ,.,ppio ,pa:i1i ,.MIl/al' ,Q ,pflrtidfJ e.on JitQ ,O'J't em dlslpJ.'I!!I,'e. 71

9 GU5~aVllS: Urn juga ,rnNlicimttJ,',de; tUpis e plIp.d ,adQP"adQ

pnru (,I oomputs:dor. '97

J'ogos ,de Dados,

] 0 'Corrid3 d~ Dlados:;Urna cor:ri(jQ emf/rie ~' veloc:idulie: (/.00'1

,('o.mpe:I,i'tiDtt!S deJ)endedD-s !'O/3'IWi dns d'uda.... I 02

,11 OJhos de Oobra; Urn jo'gtJ de dados simp/1M e di~1ftrfidQ. pam,

,UIl'flS ,tl 'iua,tm ,.u:SSOQ'/i,. HYjI

12 Cmps,: .a 1'It.!!smo jo'go dos "o~'lno;;' (II! Las Vegas no sell

mfuocwnputado,r. II W

lo {118 iille Carla,

U V1imue-.e-U m: 0' compui,(1dm' tiu es ('.'urUlS e O!;"jogoaar-eS

Jar-em UjJl..)S,{as. I,ememdo Qw~brol' (;I I:nmca.U 5 14 Mfiior~Menor; A 'p1'd~lm(l carla :"eni maior au ,rmmor ,q,fU! Q anll''Fio,r? A rri'YJ'UQ a sorte ,e po,d'el-6 gatllfo.r mno lor(unof!m

mic.f'OcrfJ.z.ados. 12:9

IS Memoria: Dois j.o'1:O;{jON!S p,mcurlJm l!tJCtmtrfll' ,0' InaiOf

ndlnero pfj\~"stlVei de ptJ~·'e.S de C"(11UJI1, .ll7

Jlnli!,n~ d~ R,tu~:iocj!Il!i,o,

~ 6 - Senh a: ,use'o"S piHl'a-s, jOl'lu!cidas lle/:O ,compttladOf para

dl'-smb',ir quai.f> siW as CO,ff!S tsro1l'didas. W45

17 AJbeno Diz: Obederfit os itl$il'u~_"(ie.JJparo m()v,ime'~I([J' os

bOfl'C:C'QS 170' lela ... ml1.~ sij' qltQlltiO quem' tp:sriv·cr I.7Uln.armd'O' for

,u A !herlOt 151

I B Pap~oli': H.epila Q' J>eqih!nr:ia de nal,Qs 'tlusic:aia produddu:s

pnr qualm pUj..'laga,i,os. I S6

J DeOS d',~ Jiliper.annll

19 Pic Man: ra,a 0 he,roi pe.rcQl'rer mn ,l'u/)if,rlllo. c-o'l~t,(mdo'

b{sc-oUos. 1.62

20 Frigcr: Ajude umcangrtnla o'lro'iJ'(!gS(J" U(Na eslrudtl

mov#nelUac/.a e ,urn "io cheil1 de JJer.j'~.s., l69'

1 ru Dinkey Kun.~: PUfQ sal",af a ~iamoradQ~ Q IlenJi lem q,!#t

&ubiI' Qt~ 0' 1.'01'0 do edi/fci'O. ,~l,'itunr1{) ot; oIJSid;r;u/o's Que'

(1parec'f'ffl no caminhll. WI'4!

,J'ttgos Eddt'alifo ,

22 B.lnl1,Q de Palavrils: D'ft.'fl;."ubl1u q,u.al i Q fJalaVfQ Ii tempt) d(!

f!vilar tun culao. un

23 Arimllhka: Te.5les flus quut,rtI opel'af;ijes. com d(ferenics

emus: de dijit::ultll1d.e. 185

24 Hojc', 0 BrasU: Vm Utsie de geogrujia' du ,8m .. w/, ,que pode

ser esumdidQ ,(1 mdrolj' paifi.fi!s. 190

Progn1m1M Vlilitlirrios

2.S QCfII,d.or de Ca1,ac~r~~ Df'.re',i'l!e seus p"dprlrm t:al'<Q'ciier'teS e

.sall't--G.S em lito para usa lUlUI'll, ] '99

2D OCilrado:!i' de Figuras: Use mna CDJUUflSimulo(Ja {I'Q'ra desenhar

11,(1 telQ, :u m

27 Moniter da Memoria: Olkel''lfe 0 ,CDflteuaa ,do RAM.

I'm:Jdijique·«), e:lI(frijiqu'(! se €nrr:QU' C'O"i!f(zlrlente r.:em; Ilad~' Q5

r,~P&tl1t~,(JeS dJ? Uln ptfJgluma. 2,] ,6

ApendiOOi,

Ap€n!h'Cf 1: 'Grilil.l'ioos pa.rtili !i)e;sel1t1:iu SpdtJes e Ca![,ac:tercs 224,

AphtJh:e 2: Gr,:ifico das, 'CcordenD.d:m; da Tela 225

ApeJldice 3; 'Mapa da Memori,a do, MSX: 226

Ap2nd{cc 4.; 'fa];)ela, de CDr~ d~, MSX 227'

Prref,alcio

Um Uyro oomcll ,est,c ,"6 Si! wrnou POSSlVCW gracas a existanlCiilldQ' M'icrosoft Bxll'!l"d~d Basic IOU MSX.

Em, virtude da oom:p'<!Itibilldadl.l' entre os micros MSX. 0 dO.no dequl.lilquer micro dessa familia. podeE:il c:afregarr OS pr,ogr;,unas deste livro IUl' Il!e:u In~i!:mco9i1:pl!Iitado:r e ent[e'ier-sf.l; cmn d~.

Os jO~(liS panl, mi':f,ooo!mpUladores [lao, sl,ol apHli8lS d~vf.l;'rt~doiS., 'mas laH!'bi!-m CChIlCiiUV,OiS. EM prim~~I:''O ]uElar. 0' desej () d~ \!'~r 0 j080 ~·pmlluo"" e func,ionando d~JlIerta 0 interesse pc::IDo oompuuldor. :Em lieguida.ao, ent rar com 00 pro,gr3Iina'l 0 us,uario Sf familiari:z.:a 00. a sint3lx,!! da ~inguatg~~ em que 10, p~og!ia;maJ fo~ ~S'Cri~iO. AJem, d;isso" oonroo (IS pmgr.am3S irnmme!!tIDe fUl;lcionam da prim~if!l! Yell, devido aenes de' dlBitacao" toma .. se nI:IOess:lJr:io ac;ompalthar a ~6gica do 'p!r'Olgr~m,a e ltssim dcscobri,r eemo ele rU'lilC~O:l:1a .• Os dois o'I~~mJOs C'Stagioii na (lvnhll;-fi.o de Illn lu,ogrrun:ador conslstem em modmri~r progralll.101.s j~ lexi s~eil1ltes ~ fini;tl:rnGnt'e 'podellT' li!I'fi!fm~rr; .' Eu SiOU ,eClIllU, de faZ~TlJ'm prO.g:falmJa mel her do que e.u.e!". Espero S~II. eerameme q.~ •. d~pulj!l de USi.lJr en!! UVIrO,. Y',ooe Slej,a ICIPaz de desc!1voh!',er p,V'OlI1:rnmas enl 'BAs:mc MSX, airnda. melbOlf'i~.s do ql1e «liS ap~nuul.c!l aqui.

Entreil:ru1itol• '0' obje,tiiVo pri1'ldpaJt tl~t:a obm Wllio e er:lStil1ar au e1IlP']i· car. A intcB~Q foi produzirbolils prognunas" que custariam desveses o Pfe.OO do llvro se ross m vcndidos llepar,admncDlIJe ,eM :rita eassete. Este Ii um l'i'\I'm de j Og(l!i e 'U's.baUlam,es ardulm~n:te p!u~ induir jiQgoS d;~ '/Ia-

ries tipos,. qu,e in~eil'e!isassem a todos 0$ lei'torCll. -

Inf~liz;mentJe. embor3 II) B'.ASIC MS:X se:jla lima Einguagem ripida 'I: que dis'p('X: d~ ool~mll:dos m.ui'[o conveni . ntles para p:roSJalllJun j.c;lgOS, 0 BA- 5:~C iDS veze.s WlIecessita d~ urn po~tquinh,o, dcajlllda.. P'or is:!lo.i.t:II:]uJ'mos pequcnas rotinas, C'mJ lifiguH!geftll de m.lU!uina 113m. aiSILIiDs progr:1lJma8. l~[o IiI~U d~v,~ ser mOLivo de preocupaJ!;i(l, ja que as tQt;R~ SaD dig:itadJrui ICOmo p!l'Ine da Ustage:m. 0 n:.!!iu~tado e u.m fjrogram31 h'lbrido de BASIC e

I:ingl.l.agcl'il de mU!IUIII1ll;t que ah!nd,c 80 n.osso objedvo principal" au seja, orerecer ao ]eilor j,ogos, .agradaveis e inU!i~sant~ii,.

o dc:scm,v'olvimlllil,to dQS ,pl'Iogl",amas tI.presemados, neste livre rui 'irfll trabalhe de equip!! !.JUI.: l,;}l.ugiu urn grande e!ifm"Qo e d~dica!;ido, Tellho a satisral;'llio d~ f'c:ogisrrar melU5 agr;1d,e;ci memos e apreda~fio iii l~(}dos que trabailllrnarl!!rt1 oomi,g'O· neste projela., Aql!leoJes que particip'alram dire'aam.eme' d.l, ehlbom~iio dos program,EIB,. e ,eujos pscmJIi;"nj illlUS apai'reccm nas Li sta· gen5. sa,o ulSSIH, i·PAULCi'\ uAND'¥'" e I,' BOO1fS;,\" ". ,.

Os outres mernbros dClgn~pofurlilm J.anel e minha ~~po,~a Val. q14e Sot: ,c!1carr'cgantm d~ prcparil!;iio do original 3tr.3Y1eS da~ s,llcessi vas rervlsOes.

Finalmenle" meus a,gradednu!1iI10S BlRidtuu-d Mil!;:.~. da editora ColIm(!s. que c;lloomendou 0 lil'ro e 51!: encarregou de '[odas as ,ela,pas de us pl:epam~ao ah! elitcgar a \lOCl1 - a n~zao Final de redo 0 proc~t;lSO - a :liltSSloa. a quemagradeec per compni -, lo.

Jim GregQry

Os prl)gn:lfl~a.o; ,aqui apreseliluldos fo:r,a,m '(${rito" cspcdalrlll:n'll: para este UVKI, 0, que resulecu em un'L::t ~cril,l de 'pmllramas que cobre. ,",odos as dpos, de jog,Ol:l" ~~~l'l> jng(}Z1 'ulluslrem multas tkmc;)ljs lite]!! de :pmgram:ou;:iio.

Par njudi'ua reduztr os erros de d,~siJtac:io. ludl;llll f.JIS, Ibt~Q;euS.rorlililn impr~ssas (·om uma largm~l-pltdriio de 39' eolunas, Isso quer dile'f que se voce UIi~lr :i;}CREEN.e para cauegalf O,S p'!'iOrgran:ms, c<lIdia I]uha ~I,!I tela eorrespeadera exaramenre ;;I urna lin~1I Ilulivru; ~te e apenas um ,el(;emp~o do esfereo que fi7.lcmn,s pitta 8:liS~Ufar que lOdos 0:5 program(lS de lc livro runl;;iun~m c,onelOl'Memc.

'lJ'epo'is, de serem exaraSj]'I.I'<Imcnh,: te~~ll!d!oo, 05 IlfO,graJmils roram listades dircl3m't.:flll: a pa,Jrl~r da memeria do oomputadar. Assirn. L~~U '1!.UIl des progrnmas nao tuncione. 0 rnais provavd ~ '[(lIC ,u, lcaer tenha eomeudo ~m ~r'I'IO naJ hora de digi~~alu.

Falandecem a experH!ncil3; de quem j.i carregou m uii,ltlllO prcgrames 11 partir de lis[age'nspllllblic1l!c1<1s em livrose revlstas, sel que haJvera ocasi.Oes 'em q lIc'IIoce .'\:I:ni ,t:8Ipil.7. de j u rar que 'c,opiou 0' prugrarna Ctlrr~tllIUIH'IItC. cmbora ele nolo esu~jl~ funeioaand«, Lc:ia Clfln~ 9llen!;;aO as noms q LIe SIe seg~em e cometei.;! mimi tnll'l..:m1S erms die digi:Laclo. P rOCUIC segu ir o t;;O!lscUII:~ jj, rilOl::l'li. e vc:ui que' eles lhe pOllp.arao rempo e trabalho,

~. Instate 0 equipamento' sul:m; II rna 'Iiltt:sa, de UIHUU1110 ad1equado,. ~i!'ntc~e em lima eadeira confcrtavel e procure mamer as costas relas, AliscgUln:se de que Ii ilumh:Hi!~fio ,e adequada e ,eolollUl,l; n liv,1IO em uma po.sit;ao ,calJ'l· y,enie]ue para iii ,lehUf<lJ.

2. Antes de oomecar a, diigi,IH. ce,r!l:ifiquc·se dtq,u(;l wd,oo ,m! equip!il.em,~

tos estio i~ado~. - -

3. Cert i £i'~I~e!"\Ee de '!.IIi!!;:: di;S:PM de 11. s~prffim.emo adeq lladiD de firl8!8 (llI!l d,e urn d~~qlJ.ele for_alado.

4. Se as ,SiI!li3S nta~t~~ U~ lT~hg l1I!io-mag.rn!liQQ n'@! i:n£cig,l:l!rep'~u"e.a:s; ~a a ,gr~vado dos:p,r,o\G;ramas. fmndD giraJll' 0 CM!reh':I, :ate a patte 'CI!I!S:~aJll1lt.li ilp~'roeelr .,

5. Para eerti fic~r-8~ de que I!udlo ,~ta em ordem, l~oJoq:ue no lfavl\\dor '!lima nta C90. Qi1lle sera,Sil.aJ, fill:SJ de u"a,baJho"r:l' '1l'''I!'''CIJ~~ um ~re~rI'e: dil'l ~'!,s;(!!IDv'3ir'~ ,~ar~Y!if!'!. d~gil<l:n:dJo

iP R£M 'TEtS,l'lE:'

3i PRINT ~"rur)O OEM·' 3_'001"0 ~,

OU, urn pro;~<rml'n!a ~m~lh!limw[e.

Salve!) progra:fll:a d~ ~~8:l':!, d~;pois carW'egl1~o e '~X@CltU::iIl,-()j flmtr<lndo, com RU N 1110 modo djre[o. St, 0 proglrarua, .fullciomll3Jf oorrCil:3JmeOilie, nao, ~()'j'll~ a ~f.lfolaw a I1'itOil.; ,~onlinuLl: de onde: 1i::10li P!l!ro~, Sill' (I pr'Qgl'ama nio' flJ~clonar. rebobinfa .t:i~a e oo:m;ece d.e ~U]I\i'OI, vtlfi ficllImdoC'om .at~nl;io fod:o~. 'os paS!JiOs. V ool!, ;~lao ,j1Qder.:t war es[afi~1!i pla'l:a salvar !lel:l. progr,a,.. rna, .scja. qlllando t~fM~ur eu 'lIUO'll1ldiD ,qui~erin~lcrrQm!pe!li ,a diigi~~<ii!;o1Q para> conitinullilli mms tarde,

E!I.perim~n(ie prl me<il'lQ ij 5~ii a maiorvdoc~da:dc de gT3!v.acito dD MSJ( pitfa ~l:rWnc-a'f se ela. !! een fiA\!~l para .!lc()mb.i~~~~o d~~u!TIp~tador..~~~~ vador' e flta qt:!e voo6 e-5~.' uti llzanoo .. Caso,·O$ .re5ultado;s no\lio sej am. .s:atrus~ :Fa~Qricsl. US~ a v{;kH;;idademenur.

Se ,esUver i~lra:ballllil:ilIl.d.o COirn dlsquetes, riB~a urn Lcst.1fl SiCmelhail1lt(:.~81- v,an.diJo ,e IIl):maml:dJ@' a (:~flt1~gar 'l!m prOgia:m~ em d~sQue[e.~

lIS. QLI~iRdd S.EI:lVI3IIi ~p~.IiI1lIS Ulm'UJ part; d(J' p:liOgr,arna" use um !'IQmeapro~ 'p:~iaJd:o. OOMO' ., VI" 0' .'1 v.~.' ere, Se pr'e'fienJl'. usea lOti.'ii e ~, da~:iJi eIlili que (I progr~m:!l foi lIiai,yo. oomlO p~lr ex~ mpl@' ~ 18:m:5~ 'i'I 1187' " .

Depoi·s. de S:a1VaJlf Hlll. Il)fogfaMa" nanl secSiq ue~,ade !Wolm Q IlQ:m~ cl~ programa e 0 n~mero do contador: assiM"podeii tocalmi-IDo ra:pidame,ll~ te no fUllurCl,.

"i. Niiio deise de ~ah"aJlF (I prt),gu!m.1l I~m filla. QU di~q:lIltl~ieQllit(!$ de en~rar eem RUN. 0 mu odo dos rnfficwos tsla, '.eheIDo de g{;tlt~(i ap~s;!1.d1'll. q'!lI~ per-

den 'm~l1ilas boras, de tl'albalhc poliq De se ,eS>i:jueCleu de aomar esta preca,u, <:ao, cI.'el,lleD:[aJ~.,

Bl;;istem !,',ar-iil:!J8, razocs pcdaa ql!lfil.~S, urn progtilIDa pode ser pe'fdido en-

. quanta ~~A stludo ,CIU!eUUidD., A,penas pru-a dar alguns 'tJjj)~m:ll~os. IWde ha'Veir urn. ,err,o, de mgitwtao Ud qUill Q~nt,elipvet<'ldo'r'CX~c!!!lc a inSLrUi;iio N.EW, Q11I, (:n;~de ser que D progrilln1 aentre em U IJlI ioop par3i 0 QIJ!jji!iL Wlilo h aja, satda a. nSio ser des:1igfJIJ' 0 Cio.pl.l.tadoc. Os ,1U'og;ramasq:ue utiWizmlil rolinu em I~ng\las,em de mdquin3i., instru~OOs POKE au insLI1I,90es 'p~ua 0 sinelna ,ope~ radonaB eSLio particuml1iirmcnt~ Sllj eito:s ill enos: ir~Vlenllvci,s ..

8. IDepois que opro,granHII eslivC:'l' fUfl:c]olllando COrJieUllneD~e'. ,e, RQomeIldliliel, giliama!1" um;a aopia de reserva e.m ama fita C90; junlam:enu~ co,m ollJ'hi(~iS progrflmas, A c@p~a pJrin~p~ deve Sl,Jlr S!lJIlBifdilida CIUl.una .fila, Mais curta, como III em S. 'Gufl.ffle l'Ip!inlill!.'i, urn plf,ograma eM c,ada lado dallta. &'i!li,m. nCarR 1:t:I'liIIillO Olill.s (ilki'l carregar es pro,gc~m<tS 11111 meruodlli do c-{)JIl· putador.. Nito 51: 'l:!lqnJeca de 'roluhu' t.odRll lEIS filas gravadas.

o Dbjieli'Vc, dlc'8uard'a,r' ~m.a C'ii'p~;J: dJe .r,es~r'l!l'a e C'LI' i~ar' ijI n~I~Ri.!i~IJad,e de diigilar Do"aliU~nte todo 0 progra'm:a casu urna dili& Fi.las :sarra iaJg'Ulm lipo de dane.

SI.'l estiver uil!l.baru~Huldo co. disQ,llete.5, 'tenh(!l sempre urn d'isquelJe de reserY'a OOJn 35, 'COpi38 de to des ,08 8(!U:S progr,amas deflnltlvos:.

9'. MI:JIj~,os lil_sulk'ios, gllm-dam suas fitM sem Re._Dhum cu:idado c d~pois se ~dmir,il:m qll!D,ando e1as ~o:m~ar.n ;~ ,apr'l,Is:en'I,llIif de r r;:i~n. 'Para, assegllmr urns. IOIllg3. li'id~ otil as 8!IH\<ij, filas. siga estas re.g;r,a,s simples '(q~as.e todas c1;u, lambem se aplicam aes disq,UC'ECS):

'. ROlUh: c1l!1fHl'lilt:nltle' todas M5Uas, rha:s:.

'. Guard~ all fit as III.O'S esto,j os quando Ilia cstiyerem. sendousadas. • Gaarde tul, Ilitas em nUl lugar fresco e seto.

.8,'IIj~le delzar ~S' nu~s nas prQxiJ'Jidadie!l d(i ,1lp;3I'eUIDS Ca,patlH de~rar c:ainP-OS magnetioos. com,l'l, rece:pro'J,es, de' TV. OOimpulaldlDrw. ~llO(al~I'iu~)i. m01u:uC's. ¥entiJador'H i e-S,pecialm,(lIDillte b;:l~rORCS •

• Niiio deixe uma flta d~nt.ro do gravad:olf scm nec:tSSidade eniD deixe (I, :!!,r.ay,lldol;' em "pl,ay·' a, n3Q S'l::C' qw:e 0' 'I1ra~r,ama 0' exijiil.

'. Depois d_gravar <I veuiiu ddi1illtti ... a do programllI. quelbre a. ~i[J8uda d~ pl~slioo do C8SSele para ~mpcdir q~ 0 prolSJ:uml seja iIIpagado pOl' en.l!.:liinO,. 5e voc~ (!lUis!!]" 'lon:mllii '8 grall,ar ,alllJnul eelsa 1IlI3 rita. bast3.1'3 tapar clnllr\1oo, eom fila. a('h!'s~v~.

lO. Nio, porui!!e Mais 'CI,n tris heras digjt!lf!dD,.Fa~a uma pausa, di uma YQIIm;a. dJe~an'S:e a Cil~1Ii _h!1i de c,o,[I'[inuar!

14 Uri"'.'} de il1fjOs em MSX

TOMEI liM BANHO DiE DE CfJIUVE.~R:O

Leia a '£'1"$'1: aci rna em V,Ol alta, T,a1vf1. fique SiJrpTeSQ ac saber q iJ)1! 1;1 ma ie[io d,w; p~NO~ If! • "Tomei urn ban ho de ehuveire", Senl que 0 rueS.OI acunh~l.:eu com vo-oil? N~ verdade, a 'rrase e "'Tomei UDli banho, de de chntlvelro". A palll.vra. "de'> apil."&C~ duu v,eze:;: seguidas, mas 00.0' .I'Il'epe'li~30 n~o ~ esperada. 0 oereblo nao '"\Ie" 0 segundo ~·de"'.

UP] problcm~ muito semcilhan1c ecorre na hera de copiar a, lis[,agem de Lm1 programa, Muilas VCZl.'! voce' digiL;,jJ n qlYC espera encontrar, em lugar daqullo que realmeate esta i'lnpresso. outros erms melto comlllilllS .sao enrrar cern a h':Lua 0 'c;~, hlll;!;!:lJf do al~aur:ismo zere (que ~as Iiist3llens deste livro ~,parece como ~) e com a ~e:t.r8 S uollugaf dn cifwiio (S).

B~~ hi U l;n mornerno de d~5tra9i'O para mi smrar diu,as Jj n~as, ecasecuIti vas com U!:.ttcs semelbaares. .A~&i In I pur c'!<llImplo.

l_1 PR]NT ·'E.lllilIe cOnI 0 prisneirn mimeru" 2:8: PRJ T '!Entre ClOP!. 0 lulmer,ol seguime'"

rude I'llcilmcntc ser tnlliiliformado em:

lSi PR[N ··Entre com a prilil'l.eim segulme"

Olbe sempre paraa Lela para vc-rifia.::i1f ~'J" U,!! caracreres que exigem o UMl t!;;j leel,,. Sh~fI foram di.ghadoo con',etame[l~~" Se ni\iia nz;er lsse, po<. derd, produzj r j 6,jas eomo:

1_ PRINT 60NDE ESl'AO AS ASPASl6

Jarnais 1eHt,!: al~~r,ar um prlograma eaqaamn csUi. iWtmdn digjrlilldo. Ueixe para ra.r:cr as nludi;lneas depoil!l que oproyama es~i'ler runelonando, Nao, ill: sinta umtado II pUlilJi!" hnhas epenas perque elas Uu: pllirL't.~rn cIig,pelllsli~ veis .. Se em a]gum pOnh:l, Cl COI'lI!!"o]c do p:I'Ofl,ljam.a for trallil.sCertdo para uma li'llha qlll~ vO(l@i pmidu. 0 programa llIao 'funeionHm.

A-li Il,!'1I lilS, .f:J ue {ll}me~m oorn. REM COlllt&m C'omeil1ft.trto,s qU,f: 0 aj udarao a e:,ompr,eender (II funelonamerue do~ pm~l'iim,;:as"Essas linhas de'l1C'm ser dig itild<l!:l exatarnente COlinO' aparecem na linagem. Depoi ~ quc ,01 rrrt1- gram,a eSlivc.r fUIlCiom'lml0 'tl ~ vcrs,ao final estlver salea ~m flta ou disq 1l!:lc, \'oce pod,era, sc quiS!er. ('"riM u.ma cerra oopia s.cm I!I,!l< 'Iin"'as de REM.

Ni1Io ha" p()r~~:~h ~~C[~hU:i'l1111\l:anM1Igl!'W, rem ,,:~U faze'!' isso, jlaque <I. peqllJlc:u:JIa ecoIlowtia de Mem6da. fe-suJtali1:te no\lio jusd fica '0 mib~~htil q~lu~ voc~ tent pali,a I'Qca.liza;r 'e 51l1primi r ,ji:5,~]nh alii. Nos p,wgr;jJ1I1Il iI:iii qu~ Kpal\~!;E'm n.!~'~~ I ili' rn. ,!lli .1 i nlruas[i.c REMpodem :lief oMi;Ljdias sem problemas.pOJ'ique: livemos oc~idailo de niio (ralllt~,!:iCiiiT 0 COm] tmlc do progrlil~WHi. ,lira nen~ urna linh<li de: REM. E~lt~!t;;l$:l10, :l1IaJO se pede dlzer '0' MeSmo de out.r.al'i pn);gnl.~ mas; ex.i:Stem al&U~5 a:1l~OJresCl1i.!e nSo ti~ n~nll~rrnl ,escrlilpl110 C]iIii[ rransfenr '0' centrele P<i!f,(! ~:inho:Jis d.r.;REM.

Os ecspa~s,pode'* ~l!.i dl!imponancia. vitam para Ulmm ~l'Io~rama. decom.~ puu~!d or . Procure !L(:m:p:re CiCr1 U1ctl.l"-sC' de q~c 'CS.ul!cwlLl raado eom 0 n~[ne· ]19 cOr.relto de espa.cos. Para rae IUltaf (I lrab~~ho,. ali1il11'1! a borda dl~ um p~d.aco de p<ilpe~ C()111 oS c.m:lIl;'h~T-e5 das ~i[lh<'!!i !;iICi'!1Ua1lJ I;llh~ixo d~ limjha q[l~ tl:;.~t:8. sende d~gi1a.da. e use esses caraeteres para CO[lt,;U ,05 C'llpa>QOS. deslo-

• c~uldo 0 'Dapel coblrla ]:lor Cj()~1iJllna.

'rod 3.'i .JS ]i.liit~g~ri8 d,~ttl 'H",m foram imprcssas CCiM ,39' e,o:ll!IIinasdie lar.!! Ill':". pal'il,corr,espo[lidercm. a largura daJ reta do oompUl;;ldor'1:10 modo SCRE~N 1'. l'iHJO O1Ij~ldOtr.a 8 vc:rif:h:::SI'F SL:: 0 rulmere dees.paJ;:'Os CSla certn, A$s~m. PC)! e~nlDJo. se LUna, Mnlta: dl.li liSHlgem ~e]"m~~a oom {!uaUIO espa~OS. a linha na tela t<lMbem. deve tcrmin ar CU(rI qU<ltl'O C8:r0'l;~O:ll. As i 11I~~ fllQiies qu~ 0[; I!fiIpaun mais de I!.IJma 1.1 nha na U:hil. exlgem um.oar a!te~'l~iiQ espeelal, Apene III tecla Rl:.-.r URN apeJ!M Cjj1iJl!;;uldo 'cltlCilS~1r 1m,O fi nal da ]'II1Ii.~jltm~ilIo. Sa VIO~~ se dJistnlir ¢~p'L;lritllir Ii 1t:~111 RIETURNao clu:.!t<ll" 80 fin a1 dill pdlflillei.ra I.inlina!. .;1 i.lls[r1:I!Cao sen\ cZl['regadOl, d~ forMa tr~nc:ada.

Usando !,1"3Irci~~ para 'marcar a linha !l~m t]1Ifi,!;; t!8h1. vue!!: n.:iI1liJ7,1Ir;;l! aindO';! pai~ a poss~bl'i icll!lOiC de erres,

S.e 'VoCe seguir todes es oorn5l~~hos aq1iJlli, ~1lI u ne i~dos. ni110 ,dcycrn eaconrsar gnmdi;:s, pwb~~m.!i.,~. is inuloiluilvc:l, p(m~~:D1,,, qiJ!C, anesar de lodas M prccm:u;:oes:, ~pareoi.lmill,lluns; erros nos seus pirO,gr~m!i!,a~" NessI! ease, Cll)'n'],sU!]~le 0 dl~h~l@ c<lpi1!~IC) do Mvm" quecontem alg~J~s (.~(msl.!lhos LI~~~S p~ra ]or,: .. ilizar t:rrOS.

,Embo:ra os micros brasil.e'i'ros di~fmHh~m de a,oe~~ln~. I;!i.h:", cmgeral sao lIslldo~,pl1l1i'" rnastrar UI!,'.IIsa.8C~.fi na tela e nan P3U enml.d a de dados no OOnIDl,puitadior. Esta e ~. tlloiSofia adoutda oeste I1vw. Assh'n, "tio UJJVl tmJ~un o~lcedmui1 para responder <lis pl;!.rgUl1llli~ do C1(U~,plU.fldof. Os aeenres d~it,I!(tm 1I1;v ~,im,ll~l1I~clllle omi:ddos: 0 ",~jj .subsHwudo :P~~i.'I letra "C"'. AI unica ,e)u::eCio I!: 0 jogC' "Hcj~ .• (II 'Bro1lsii'''. ,em qU!l:, 'pur S!L: tratar de u.nJD: j'QgQ didaHco. ()I!'i rIID[h1,;;il do~ es IIl:doo eCllIpilCiili:s S,g .'1011.0 I!Icei[os peto oompuWdo:r quando CI!~gil:ilidQS CQiIT'~t3D~fI[e, com todcs os '.ocenh):!I (!IIII: pn~s,lur::rn.

P'OJ oUMIlado. com exee~£!io do ,~o,~o Mruof~Me;Jillor, em que a IDe,tIla, ·"M'· i Wlald!l, p3lrEI i nQrncaJr I" maiior" C iii letra ~ "m?"pa:rai.ndi:C<lIIiI ~:m~IilQr"·. .: leiltii!!i ma:h1s~I.a:s e rm:i.nrWiclJIi'as pfil:lem ser Wladas runmsl~i:nltRJ:flenm.e par.a. respoo::!.d:~r asperpint.;m forml!.lJladas ~~Wa (:~m.p~t&jor.

T1e!c,ni,cas Usad,ss nos Prog'ramas

o s.st,eDla deat ribuicao de c:o:re5, ,adC'l"dD! no MSX (:lode ser usado :poca t'ri,3Jr a i~usao de imdfl:l mIDM)'" i men(;o ~ulim dlpiido. 0 mtUodo consilih, em deiiinil" scp8Jnu:illametl;[e cada ,eIDem.entlO' de. urna imBg~m .1lm':Il'J6> de difierefl~es, pomeiros d~ cor. Em ~guwda. 105 pOl!lteiro ... s.ao,lirccado,$ pe~o p(\~p"io' 1'00- ,gfalma. QI!Ii:U1i:do as eeres sao .modiRcadM. 0 Idei~o 1111'111 ~dil ~ im;tanlibIr.n e e:riii1 a. Uusio de movinl,GlIWtJQ'.

o :pr0I:1lIrOllmJ3I LuliirittJO ~ DiM, cXJccle'llIh:: exemplo, do usa' desta leclliCBI.

Or~!i,ulladlo ,e urn IlabiriiltUo C'mq,ue 0 pon~,o de vista d~ prui&oa que enBi joglllndo mud!!. ~a:pid!amcnh:. Niio seria poss~v,el cO:llIsegllir 0 menno efelto de OIl11tra r(lfm~, 8,~il!o ser ~recof.J\endo a urn C')I,1!.s.e prtllllra:mJai ~m :1~Wligua,- 8,e'flI de m.;1quillll3i.

Esta e cutra [ocnica que ,e usada l'leiib.i ]wvwo. 0 usa dOl XOR pennUe iUperlPor i'lil' orma~acs, a uma inl~lem. que J.di ,estejlai prcm:nterla E!e~l.t" litQ s£r e'1I.ecutadaum.i11 seg'l.llnda 'I,Iez.;:I Qpera~a' XOR II"t!n'U,jIYC' a, ~Iilifomaet!io ,a.d~~ clonal. driNamkli a i rnagem anliga irnahe!f,ada.

E')jempl~ ,{[('lIS corn E1ndos, noocssado1l :par,a usa!!" Ie.liJ~~ t~cni;Ce podinm, ser enooililtra.dos, em muito'S d(l!S pilrogil"am~. 0 prD,rama ,Xadlez. c:ontem ,algulils otimos, e,u.:mplo~ ..

o JobjeliYtl, prineipal deSi[e nvro,. oomo ja driu-emo!l. ,~ oferece:r :pro.,

~ra;mas agrad'vei s e dJiv~.nidos. Pafa des.qrev~:i oo:m.porm.entli~ CQmQ ~a II,! m desses pl:"n~nm]lil~ rone iona ,. h:r~ljma(S q 1Iil:~' nxl ilIJt..~!! ill rn~l~d!e e nlirrm.;rn de jogos qUle {;I li vro CO~Le-m.

Se voce SI: dispuser ilf ~.stud11lr .. e$lrllllll.l,.it l6!ilfCaJ de cada pmgJra.m<ll. dcst':Cllui rlli lfIDlUll[IIlS sohu;oes inU::H~S:iii3!ll'a.lf'o"i Co ofigiJl<l~s para prob1em<lis pra.~ nces de progrMllatl0'. ']',ente 'c;omp:r<~~md~r.'il. m':az3.@i piil'la (ID!!HlJ ~~n~s m~::D'l:rur no:!!! .'lilt! '~!iI(hu u I3i f:nwtll ~t:lrIlC fUflCi.fHUilJm. Dt::p~i!l qU!~ salvar el:U~ filllli a vers-~.o final de cada. programl.'l. expenntente modli'ic,j~iJo de d[Y,ell'sas· ma· nei r.Offi plfl.r.a 'VCr c q ue m::O~rl~C; aJis.i,lrut. a p~el:lde'fii .III liJi~lo mais ,8. respc'it;o de pr'Ogr.l'm.~ciio co poder~ i ncorporar (I que: i!!prendleJ~ a.QS sC'us proprios, progr.lImml.

Agora che.ll:a de eeneersa e va rnos corn~ar a ~'aneg~ OO!l<!lOS j,OigoS.

1

Nestle j og>o' de aV~l'Iu:!ra. voce 5(' e~contra sneerado 310' t1Jido dQ lend~rio I1(1V]o~fa[1tal$m(l.

QUlilru e' 0 segred,o do .Marie Cetesltl! Oade estoti. a '[ripUi[a~fio:?

Par!1l ~\."Sn]v'i:lr c.~I.t: rrlr~tcrnfl' llll3iril iM:fI, basta iiOlmcccr rut i [IstfllJ.~cs, carreeasae cOImpuHldor. As mensa!le~~ fom. Mi:sturadas na US~alge'm. par;:l q:l!J!! \f,od f1ao desctlbra as respostes enqmm~o~tiver dig~i.u duo pmgnun;l.

N8. maierl a dQS jogos, dea:venIJlU!'",a. as dil"eQoes s:ao io(fiC;JJ,dii.:ii COH10 norte, sui. lestee oeste. N~5tej,o,g~,. :porcm" como ee traea deurna <lve:nt:u~ ra Dullea" ,jiB, di1fl!l'lga~ siD piro.a. :popa. homilowdn ~ hereste, qlIDc' ~'fl[l"fesl" po,n:deill. resp~li",aD1,C:fm[e. a :lJlane d:iMl.e:iJiai do :rIa,vio, ap:.lir~e uaseill"a. ao lilido esqu~rdo '~, alQ ~ado' d.i"~1jlC.

E~q!JH.~h.1 ~tive~ ]ClJj!l.tUJU, C aat),":il~~,~],bd liesel'd,.l! IJIn JIJiapa dlos lu-

sarg poor ,olDde j6i piliSSOO. 0 OOliBpu1lad.a:r iileeitlll il!!ll!LI.'Uieles eem dU3!B: IOU II\~, palavras, como '!~pr bald~"~ O!!IJ "subb: peJa oOIillii,'"" e abreYi:a9~ de 'Ires l.elras pll!rs, as di~oo: PltO, POP. 80M 'e 10!.. PMa salbet em que dir~es voca ,pode' se m.mm.entarJ; entre com. ~!SArnnA_S'~.

E~ mu.i,tos ;Q,gWl de <lIVf:J1Il ura~ D j:ogado, tern. que e~trat eoma 'pallll,'Yra ""lNJ'VENTARlO·· para saiber 00 qllill ~ui. au:n:gando 0,0 nu;um,emo. Neste jo.S!o, porem" <Ii Iist,,_ ,d'os objetos 6 mostradam:a. tel a diepo.is d~ eada movinlleOIO.

No, CH:O dO's joJOs d~ aventum. uma da,s, tdilcas, mais ,e:I1CB!l'es; ,(mM que exile uma, boa do~ de pae~ene~a)1 i ,experim~w v;4rios, '11·verbD's diflllr,ente:s para dcsoobrir quais as que fazellil ;alsurn. ~r(lito,. AI,guosvcliibo5 muilO, 1!!~d(lill em j,ogos dei!llventur~ ~ao: :pegar ~ subiir. de~er: ,e albut. Telill-' l~ Wi. ,es.se-'s e olltr,os Bemelba!lrJites, enquMlo, ~Iniv~f l!! bol:'d!o do Mflri'e Ce=

'''''I'''' E _ • .,. t L'£m ..I ,"'P' instru NIl ""'''''' '" "'1ll!_~':'''''''F .. ",!I.",u".r· .. '"

r, ....... " xpe['1J/menwc :am~ O<u ~_~ -'r""'- ~ilJljIllllLili .. '"wrD~"",''_''

m,Q,m,eJilm ,aproOI1:ri:ado panra¥(!!!' I) qu~ ac(iiD~eCie. Para abWi!dolDM 0 jloSlOt ,m,W, (lO'mI ' m)ESJS:],O,·,j. 01 CDmiPutador pergu.llitll!fS ;av,@~ se dJesej<'!l co-

m,~f de :novo. . - .

,De:PID~!l1 que re!lQ,i'¥'er 'Q Mii;tJ!rio. ,t:fjll'llilide D5 ,mgospRJ:<!I jQgm- tam~nl. Voee lie divf:rIliiiiy,edo '!:Jutras pesiSiOru; pasSMemt peilas .meslitl:Wi dlmcufd,ades ,que II,e'\l'l: ql~e enfl'e.Dlar.

Immm REM «« MARIE CELESTE - IBSl/aIMI PA'lJluB :;;- > :> >

1 flIl. 0 IS C REEN IZI: COLOR ,1'5' ~ 4, 7' ,: KEY OFF 1020 WIDTH 38:aCTO 26m~

1030 RESTORE 1120

1~40 FOR N=l TO ~5

105'm IFOR 111'1=1 TOI b

10,6£11, REAtI, A,,: LOCATE N~, M

107m PRINT CHR$(l);CHR$(A); U~8m ;NEXT H

lm90 NEXT N

1100 PRINT;PRINT 11101 RETURNI

1120 ~ATA a2~86,86~B6~86,Bl~e7,32,32~32 ~32~32,82~86,S6J~,,8b,B1~87,32~32~32~32 ~32~a9fe6~e6~86J86181

113~ DATA 32132~88~88 S6~90,32,32~S7,87 ~32~S7~32~32,89~a3 86

.114·1ll D,ArA :81, 32,~ 32,~ 9,4 ~,e~, :86 I 81 j 32,32 ~ 87 ~3~,32,32,32.32,89f~2~32t32

1150 DATA 32~71~89~a~~86~81

116m DAlA 32 ~ 32 ~ 8'8: ~ 84, 86 ~ ge" 32 ~ 32 ~B7,~ 9:] ~32~87~32~~2~89~91~32i91

117~ DATA 32~32,32,32~32~32

l1B~ DATA BB!86~86~86,86~90~S7,32,32~32 ~ 32. 87" 89 ~ '32 ~32 ~ 32, 32 !,91

1190 nATA 3>2, 32 ~ as ~ 84, 86 ~ 9ifJJ ~ 32:, 32, 87 ~,87' ,32~87,32!32,89,91.32~91

12WW DATA 89!86~86~S6~86~81

1.210 DATIA 3:;;:: ~ 32. 88 !E1~ ~ 8,6!~ 90 ! 32 ~;S,2:! 87 ~ 87 ,32,97~32,32~89~91,32~.1

1220 DA or ,PI:!!:2 ~ :;;'2 ~ 88 ~ 9J12) ~ 32 ~ 90 ~ 32 ~ 3,2' , 87 ~ 87 ,32~87,32,32,B9·99,f3:6,9i

12310 DATA 32 ~ 88 ~ 84, ~El6, B6,~ 90 ~ 32,32,87,32 .32,87~32~32~32,32~32~91

i2~m nAT.A 32, 32 ~. 88 ,84 ~ 86,~ 90 ,,'3.2 , 3,2,~ 8:7 ! 87' ~~2,e7,32~32~89~~1~32,91

.1250 RE'I"'! < <: <: < ] N I cr ~L I Z A:~ AD )- »» >-

126~ rlEF FNA~ (: INJ) ""RIGHT$ (lJ$ < N) • LEN (0$ (IN!) ) -:2)

j 27G!1 nu'1 IH lm~ 7)' 1:-!8eJl DIM 0$ (11) 12~~ DIH M(lm,4) 13'~ro OlM (I( 11)

131m RESTORE. 1410 132~ FOR N~l TO 1~

IS3m READ D(N~1"D(N~2),D(N~3)~D(N,4) 134~ RERD D(N~5)~D(N~~)~n(N~71

135W READ M(N,1)~M(N~2),M~N~3)~M(N~4) 1360 NEXT N

1370 FOR N=l TO 11 138~ READ O$(Nl~D(Nl 139:[21 ii"iI,EX T 1\11

14~~ RETURN

1410 OATA 1~8~lm~1~~~~m~m 142m DATA 0~~,~~ID

'143~ DATA lj4~6~2m.36~21~31 144ID DATA 1~1~~~0

I i~:·,rt.J DATA ~ ~4 ~.6~ 20 .~.,0.1Zi

22. 'ullfD de jagos em M8X

146~ DATA 1,0~1~0

1470 DATA 1,4~6~2m~32,22,34 !~a~ DATA ~.1~1~~

1490 DATA i,18,33.19~3~2m~0 1500 DATA ~~1~~~~

1510 DATA 1.5~8~9~11 20.W~0 152~ DATA ~,~~m,~

1~~0 DATA 1,2~2~,25~6~15,16 154~ UAIA 1,0~0~1

155~ DATn 1~19~24~30~26.e~~ 1560 DATA m.~~~~m

157~ nATA 1~12~22,34.29~3.m 158~ DAr~ 1,~~0~1

159m DATA 3,20~1~17~33~27~~ 160m DATA 0,~~1.~

Hd 0 DATA A r-ALA ~ 8

1620 DATA A LON~.l

163~ DATA A POCA DE AGUA~2 lb40 DATA A CORDA,6

165~ DATA D ~ILHEIE~8

166m DATn 0 BALDE.~

167m DATA A CHAVE~0

16e~ DATA u GArO~9

1691iJ DATt'1 0 ESFREG{lO. 5

17~~ DATA 0 PAR Df GALOCHAS,5 17)0 DnlA 0 GANCHO~m

17.20 F'EM <:J< ENTRADA DE CADOS »,'> 11 •• :·Vl t1$~"" :1~r~INr:r'r~]NT:II-::INT II)";

1 '7/H2l FI-A5C ( I NPUT$ ( 1) t f'\l'~D 223: .A=,A UH .'~2

?)Io.ID ':-FIlI: ('I ~-Cl--Hi1t ( ('I )

17::"1lJ IF .A-8 A,ND 1'1$>~1" THEN N$=LEFT$, "1$. LEI,I O·1:t ) - i ) : PR I NT CHR,. ( 127) =

.i}611.) Ii-=- A""1.5 AND M$ IIii "11-irtJ F'RII\JT A$:RE 11 JHl1i

l 70 It=' (Aif;o(.."A" DR A$>"Z") (.lND A<..:"32 OR

I [7N ( M;I>.1 ""II fll THEN. 1741/)

l/UM M$"'M-:li I A'li : F'F~ 1 Nl A1i = : r~[li n 17411}J 1790 REM ~~(: INVENTARIO »»

HJIOI.8 I 'I·n I\JI ~ 1;0;[.: [N ~

lel~ FOR N=j TO 11;lF O(N)~13 THEN SDTD

1830

182~ NE)\ T 1\.1: PR I I'IIT "'Vot: ~ II ~o est a e ill"" I""egl ando n aLdla ., II = RETURN

183~ P'R][ N II "VOl'"" ~ ,est..tI 't:..., I-I~eg ... ndo: " 1840 FOR N~l TO 11

IB5~ IF O(N)~13 THEN PRINT FNA$(N) l8bI7J I\IF'XT N

18:70 r..:El Ur""N

1880 REM «« SEPARAR »» 1 89~ \)$'"' II II : 1\1$": I! "

190m 80R N=l TO U N(MS)

19'1I.~1 IF I'UD$ (Ir1"$ ~ i'~,~!);," " THEN GOTU 195~ 1920 NEXT N

1930 ',j$""M£

1940 RETURN

19~~ V!'''''I.EFT$(M$,N-l)

! 96,0 N$=R 1 GHT$ ( 1"1$ ~ LEN ( ~I$ ) ~N ) .1 97~ RETURI·!

19G~ REM «« CDHAND09 ~>~> 199'Ql GOSUI) 1 73ti'l'

2WW'll:1i GOSUB 1 [19 11:1

2'2l1r21 IF V$"" "j)ES 1 BTU" THtcN uun 1 =~(~~40

2~20 IF V$="SAl DAS" THEN GDSUB J,'P70 2~3~ CS~LEFT$(V.~3)

2~':~0 1 F C$"" U OUM!~ 'n ~EN GOSlI:lE! 26,4a1 2~5m IF [;$_11 BOR" TlnllE.N GUSU~ ',,)671l1 ?~6~ [F C$~ II PRO II THE"I GOSlIE! 2700 2~7~ I F C$~"F'Opij TI"lEN LoUSUIEl '?73~

2~GllIl r r- C$,",!1 PEG I! OR C$Cl'~ CAR" OR C$~'" LEY " nr~ C\Ii=" E[ G" ~ HE N GDSUB 2770

2~9m IF CS ... " ROI'il OR [;$"" ,; LAR n r HeN GOSL1~

297'f2)

21~~ IF Ci>="'EN"i"'1I THEN GObUf! :: .. ;W50 :211m 1 r- em"" '" SA I !II lIH:r=N B08UE 311 GO

212.~ IF C$_"IABR" OR ca="FCCII Ol~' C$="TRA Ii TH£N tmSLJE! 341m

213ml 1 F L:'4i= n CD~ I' THEI\I HQ8Lm 3520

214121 IF [;$"" "5U8 u un C'$= II OES ,'I TIHE~J GDSLJE! 365,lQ

2151~1 1 F C$"" H MAT III THEJ1'J GUSUB 3770

216,m IF C';= ii E.N >: II n ~ C$mJ II SIE)C III H .. H::N GlJSUEI

3871i!:l

',217~ IF ~,q71211 2.l80 IF

2930

2190 C$~LEFT$(Y$~2)

2200 IF C$"" !II I 'F: ! ~ 0 R C$= II 'VA "il [] R C$ "'" ". V'o 'n T

HEN V$:;;::N$,~ GOlfO 2~)11~

22UiJ IF tC!P=!'"EI:''' DR C$,="LE'~ THENI GOISUB 3 170

2220 [F V$= " !Ii: " n-l~NGOTO 2::Z4W 2230 PR ] NT = PFo! I ~ T Ii, N'~c enlLen d i . . ., nl 2240 GOSU8 24,S'(rj

225{!l, GOrO 19'9'1lI

2260 REM c-cc PrlP,FlESENITAII;"CJ »»

2'270 GOSUB 233't!]

228~ SIOSUB 12'6m

2290 GOSUB lIZJ3W

2:3'21.~ tP 0=6

231 (Il, RETURN

2321L1] «', « 'ST'~ I NBS ), )})- 233~ ['lIN W$I( 36)

2340 RESTORE 2390

2.3 ~~~ FO A NI~' 1 TO 36 23,61121 READ W~ ( N)

2:;,7~ NEXT INJ,

23:sm RETURN

239~ DATA VOCE ESTA~NA POPA,PROA~ND,BD~ ESTlE. CONVES .~ DE,B,A ] X 'D ~ EM UM, PEQUENO ~, IG,R,A~N D IE

2,41Z1~ DATA, III BARCO , ,AD LADO~i, EM, LIM ~ElARI[~O SAL YA-Y I n.r~5 ,'RANIGE

2liH0 DA:TAI SOB SEUS 'P~S,s,08., DO. LADO DE 'F ORA~DENTRD~NA~DD MARIE CELE8T~ .

.2 4 20 D'Al' AI EST A, U:J1"I,F\ ~ 'I'll] MAR. I CAB M !\IE , 0 " IE:Ai~ ] TPiOI '. , T R AN1CADO. , DESTFlA N!CADO.. ~ PARA ~ DO " MEl LHADO. ~,'VIDelE: y:~ ~[lE iJI1'iIDEF' OEi t HJ

e$=~!AMIA'" OR C~~uPR'E:n THEN IGOS'UE!
C1I>::::; "C,AL '" DR IC$~'" V'~S" lfH~N I~IOBU(!: 2.l,'i 3 I.1JI DATA F'ASSA,(3;EI'1, DA ,,'0 r:"'H~!O. DE'MON UJ "TIF( IANGIJILO D~IS BERt"lUID,AS, ATLANTIOA

244m REIM (<: < < DEseR I 1;,5, S > > > >,

'245m I F PQ~2 AND n ( 10 ') ~~). 13 THIEN PR INT III, o Ch~D 96tA molh~do e YOC@ es~orrega n.

dir~~~o da proa.~:PO~3

246ml IF PO"'l AI\iID 01(:2) =0 THEN OOT[I 398i!llJ 247'ED IF"RINT

2481Z11 FOR N=::;;l. TO, '1

2~49m P,R:l NT W$ ('0 ( PO, '. N,) ) ; '!' '":; 250m NEXT Nl

251m GOSUB 1 EU!1IeI,

2520 PRINT :'FIJR N=l TIIlJ 11; IF o (N) ""PO THE N 2540

2'53tl1 NEXT Nid"'RINT hVOC'~ n~c v~ fu;mhum 0, 'k:ij E,t;,Q. II = RETURNI

:2 5j,J!HiJ P' Fa Nl II VCH: e' ve = II 2550 FOR N~l TO 11

256m IF 0 (N ) '''''PO, HEN IPRI NT ilUM1I, ~ :: IF LEF T$ (0$ ('NI) ,1) c» '''011' THEN PIRIN! 0$ (N), 'EILSE ~;;oR:ENT RH3HT$:( 01$ (N), ~,LENI( 0$ (N) ) -1 )

257~' NEXT N

2'58'1lD 'R'ETURNI

25'912'1' REM «« COIMEI;O DO JOGO )-}» .2~llIlml GOSUB :2271tll1

::2 6,1 m, is !JrS.uB 2·45'ilJ

2'6,20 GOSUB .l99m

2'6,3,11) REM «« EXECU~PUJ' DOS COMAN,I),OS }),}

>

2640 V$= In * .~

2650 IF M(pd14)=1 THEN PO=PO-5=RETURN 2b6~ PRINT ~VO~~ n~o pode ir n 5se diF~ Ii ~D • n :: RETURN

2671l1' \/$': II * "1

2680 IF M(PO,2)=1 THEN PO""PO+5:RETURN 2690 PR liNT '" Vcc:.:tl!' n~[J pede! i i"" i'iPe5S~ dire ~~o ~ II. :: REl'URN

27'121121 'V $;:;;: ." * 'II

2710 IF M(pa,l)~l THEN PO=PO+l:RETURN

27212J PRINT iIVccE!' n~o pede ~ 1; nesse.l din~ G::no. '''= RETURN

2730 V$= II ill "

274~ IF(PC~2 OR PD~7) AND D(PO~l)<)INT( I) ( PO ~ i ) ~ ,AND IJ ( 4 ) ""PO THEN SOTCI 3,700 21~~ IF M(PO~3)=1 THEN PO~PO-1~RETURN 2760 PR I !'>IT n Vel: ~ n ~o, pocl~, i r n,essE'!. ~h r~ ~'f1o_":RETLJRN

":'770 V$''''''' I'

2780 FOR N-l TO 11

279m IF N$~OS(N) DR N$=FNASIN) THEN GOT o r')84[,l)

~8(i)EJ NEXT N

2810 IF C$,_" F'EJ3" THJ::N P,R IN r ,,. Pe'ga r "; E l.SIC IF [;$"" il LEV Ii THE 1'1 PR, I r.rr II Lev ar n ~ ,EL SELF C ="CAR'" THEN PRINT Ii Car"t""1:'9'"1t"" " ~ EL'SE PR 1 NT 'I gsgur ar- ";'

2820 PRINT ~o qu~ 7"

2830 R'ETURr,1

284m IF O(N)=13 THEN PRIN "YocjA est. com "~O$(N, ;RETURN

2B5~ IF O(N)<>PO THEN PRINT ~Qu~ ~;FNA$ (N) ." ?" ,= RETURN

2860 IF N=4 A~D D(PO.i)()INT(D(PO,l)) T HEN PRINT "Est~ amarrada ~p@rt~d~ ~E~ai 9 ! ~ ! 11 ': RETURbl

2870 IF N~6 AND 0(7);0 THEN GOSUB 290~~ :GICITD 33412)

2880 IF N=2 THEN PRINT nEl~ est. pr~ga no barco !":RETURN

289m IF N=11 THEIN PRINT ,,~ pesado de'ffi'<!I.i s para vac~ ''':RETURN

'2q~'1ZI1 01 t N) =13

291m PKH'4T "VO'I:E' p,aga j';O$(Nl 292m R'ETIJRt>JI

2930 V$=~*~~IF N$<}O$(l~) AND N$()FNA.( Hn THEN 1 F C$= I! VES II ThiENI PR I NT ,,, V,~st i r o quO ?"=RETURN ELSE PRINT ~Cal~ar ~ qu ,e ? " : RETURN

:2"',40 I. 0 (11l1) =13 THE~~ PR INT !I VQc:e j a c a tr;;:r.:,u I' ~ 0$ (iii!) = RETURN

295W ! I=- u ( lLiJ) 0 PO THDJ IPRI NT i'QUE!' "; FNA *' ( 10) ~" ?":, RETURN

"2960 PRI NT "Vc:H:e C:~]( il;~ "= o'*' (llli) : U ( H~) =1

3 = RE rURl'II

298~ FOR N~l TO 1~

'2'991Z1 IF N$·-Ot. ( N) OR 1'>l$:;:;;FN(l$ ( I'll) THEN 30;;:e

31Z10Ql oNE X T ~~

3~ i VI J F (::1>"" i' SOL U ThlEr.J PR I NT n So 1 ·tar "; ELSE PRINT ~La~gar ~;

3~2121 PR INT'" 0 QIi.!J.0 ? "' ~ RETUHN

3~3~ IF O(N){)i3 THEN PRINT "V~~~ n~Q e s·t..a I: 00Il'"" I"'eg~ndo~ss~ ob ]E't.CI I " : fd':: r umN 3~41l1 prUNT Ii Voce £ow 1. l.", "~ 0$ (N) : 0 (I"") ""PO:

RETURN

3(Z1 :';~ V1I=" * "'

3~6!Z1 IF ( N$ c» II DEPOS I TO II riND 1'>1'$ <)-" NO DEP OS X 1"0 'i) n-H.:Jio,J, 1'::'11 E NT "en t rar Oil d~ ?": RETU RN

3~71Z1 IF r-O=5 nlEI\~ PR 1 NT ii 'Joe: ~ j.&. e'!:> t.a ~ entro d~le !~:RETURN

31ilSIli IF PO <> 1 ei' THEI'IIPR I NT "!QUI? de'pbs ito

? I, = F~~-::TURN

31Z19~ IF :M ( 1~,4) ""1]1 THEN PRINT "E'5t~ tri3.n ,~adD ~ II: RETURN

31m0 PD=5:rR[NT"Vo~. ~ntre nD d~pbsita. " ~ RETURN

31 j_~ iJ$=.I' t II

312~ IF (N$<>~DEPDSITOH AND N$()HDD DEP OSlTDi!) TI-'lEr.! PR INT "Sai r de ofilde ?" = RET L:H:;~N

313~ 1 F PO;::;::10 THEt">,1 PR.INT "VOII:.E j a e$t~ for-a d,~.h e ~":: RETURN

314,~ IF PO<>5 ThlEN PRINT '''Gue dlep~s1i1;:Cl ?" : RETURN

31~0 IF M(1~~4)~0 THEN PRINT ~Est~ tran c.ado ! '" : IRcTURI\~

31610 PO"" 1 (!J = F'FU: NiT~1 Vbr;;:,e ~;:I!J, "cl~i depl~!Si 'to. II = RETURN

3171Z11 \.'$,= 1'1' * B

3181l:]1 1:1'" N$:;;;;;;i'[lEPOSIlO'1 [If,! N$::IIIQ DEPOS![TCI II l'HEN m F PO"" UlJ THE~ PFU:: NT ~n E h~es tan~ W $ ~ D ( POI ~ 6) ) :: RETURN ELSIE :IF P []1;;:;;51 THEN PR I NiT i~'IE] Ie ~. eSibll,~Ir"'C e e!l1'1Ip!:u,,~i raldlb! .' " ;: :RETUIRN ELSE PA: I NT 1111 Qlu,e depQ'$i t,o ? II :: RETURN

3191Z1 FClIIR Ni~l TOI 11

32~'ri\1 ~ F N'5=I[l''t (N) lOA Nlil=FNA$ (, N'~ TH~N 'gOT 01 325~

32,U1'l NEXT N

3221rl1 J[ F C$= I! Ll[ '" THi:N P"R~ NT ,i LeI"" ,I! ; ELSE

PR.nn lilExamlinar .i; 32.3112) PR ;[ NT " ,~ Iq ItJL~ ? !, 3:2.4m RETURNI

32olf.! :J: F C$= ,i illE i! I~U'iIlID NI <.::> 5 THEN f'~ liNT [u ~u e bobaJg'em ! Ii. ; RETURN

326m IF 0 (N) -o=o IA'NU 01,( N)I <> 1'3 THIEN :PRI ,~T H [;l'ldl~ u; ,FNlA,$I( N); II ? n = :RETI!JR'~

327m MF N=l THEN PRINT "E efiede !" :3 2a~ 1,IF iN 02 THEN PR :m NT 1111 II! v,e rallt! ! III

"32'91W!) IF 111\.1=3 THEN PH lE NT ,mE die agluasa l'gjla d~ ! "i

3'3~21(1~1 I r- Nil"" 4 l' HE N PIA liNT ~, E bem 9 res sa. I~ reo s i '5 t.en tl~ .! '~I

331~1 IF N~=4 AND D (PO ~ 1) <>.INlr( D:( PO,~ 1)1} T HEN PRmNl' nE~tacu~arrad~ na. slII'Iurada d,e navio ~! II

332~1 IF N ""5 THE N PR I NT ! j' E ste ~sC:. r i" tiC : n ~. PR lI: NT ". N,g;(o ad ian t,a ,exami na,r'" 01 gs tD" ,Ii 333m J! F N=6 ~IN.[I n ( 7 ) <::> m THEN PR j[ NT " Es t.

334~! IF N:= 6 AND O( 7 ') :::;;I~ T:HEN ,p R.I NT '" c:~ 1 u

algo de dent~o d~l~ !~:O(71~PO

33512)1 IF N=7 THIEN FIR I NT !"!Es't.A e'~'c: Ir i t.OI' D

1~:Pr1I~ 1 T [) I I U

3360 IF iN""B THiENI PR;[ NT i,1I E Ie '$.01 i i: o rli'",1r" EFI 0 o atr~s dE um rata !"~O(B)=0

337ril IF M=9 1If1..JEN Ii"'llf;Inn Ii!E~·ta. muit.o 'gest
0 ! '"
338112' IF IN=lm THEM PRINT 11"82!o f~dGlr~nt~s
! ii:i'
33911l!) IF N:::ol1 THEN PRINT 1I~IPalf"et:.e que S' I~ 3410 V$="*~=IF ft$()"DEPOSITDu AND N$(>~ n lOi'EP I),S I T Dli THEN 1 IF C$""'" AEiR "TH IE N F'ffI NT

!! ,t! b r i r= D q I!.f~e ?!I!: RETURN tEL 8:E. lE F C $,::;:;; !~ F'EIC !ii THIEN PFt :t NT ,. FI~'~ h "I'!i"'ClI' que? '''i RE'llJRN lEt. SIE, iP'R I r·nlli Tranllbar 10 Q~I~ ? .. ;RE1URh!

342~ IF PO<>10 AND PO<>5 THEN PRINT ~Cu E!' ~iep~5i 't,~ ? '" : A'ETURN

:3 4' 3~1 1 F ClII( 7) <::> 13 T:H E I'll PRJ: NT .11 VI[lCIE: NR[! T EN A CHIAVr; ~. Ii : RETtllMltN

3,q~0 I F C$~> "AlEMPI,ill l'HEN 1M ( f'O ~ 4) ~0 ; M ( PO ,,2 ,~m:PRINT ~VOC~ tr~nca c d~p·sito.p~D(l m~6)-27;iiE'TURN

345~ MF PD~10 THEN M(PO.4)=1 ELSE M(PD~ 2)""1

3.&~ PRINT ~V~~@ abre 0 d~p65ito."~D(lm ~6 )=28 ::R,ETURN

3,470 V$=" * I'! :: IF N$<>O$( 4\) ANln N$()FNAii (4 )1 THIEN IF C'$"" ~I AHA'~ T,~E:N: PR [NT u A,m03Jrt!"'ca,r' CD

qu~ ? II • RETURN ELS:E PFi:] NT g!1 F"l"'ender ,~ I~"~ ~ '? Id : RE1UlR[N

340m IF 0(4'()13 AND O(4,<>pO THEN PRIN r "(Iue "~FNA:$ 1(4) ;" 71.1 ~F1ETURN

349m IF D(PO~l)<>INTCD(PO~l» THEN PRIN T 0$( ,~l,q ;; i'i j,a. ,e 5t ~ ~.m~ r-F ,~d ~ ! ~, ~ R'E:TURN 3~,00 MF 1P:[}<>6 AND PQ-(>7 ANID( PIJO'2 O,~[I 'e 11') (>21 AND PO{)l T~EN PRIINT "Ni~ICI ha 10 rIldle"'.marr~,-lL i3.,;tqui ! u ~ RETURN

3510 D'PO,1'~D(PD,1)+.5~O(4)~PD:PRI~T " voce amarra ~;O.(4)~RETURN

'3'52~' V$>= II * II : IF 0 (, 1 ) <::> 13 TIHEN: P'R'j[ NT II Com ,~ Ique? III : 1F!:E:TUUiN

353e FOR N~l TO 11

3,5'f tlI IF 1'-1$-0$ ( ~\I ) OR IN$-FNA!I> ( N) THEN 358 (tl

35~VI NEX1 N

:;; 56~ I'll '! '1\1 Ii II [";c 1- t.a r" C qu~' ?" '357 ~ RETURi'.l

3S81Z1 IF Ci ( ~J ) <.: >PO AI\ID a ( N) () 13· THEN F'FH N T IIQu,=, "~FNA$ (iN l' ;, II ' •• J~. RI::.'fURN

359W IF N~4 THEM IF D(P'D~.L) <>n~T(D(PO~! )) THEN DIPO~1)~D(PO~1)-.5

361ill~ 1 F' ~\I=2 THEN. PR I NT '~VelC @ t: D("t~ ~I; 0$ (2) ; GO"(O 39BIZI

361~ I F ~'4~8 THEN ISDTO 377121

36210 IF N=5 O,R N:=4 THEN PR [NT i'VDCe I: C If' ta '! ~ 0$ (N) .~ " • '! :,'RETURINI

36::.-=;1lI PRINT "DUE beste-ira ! 1.1 3,6 1HZ) RETURN

365m V$-" * I! : IF N$<> UPEL "+0$ (4), AND N$<> "N" HJ$ t 4) THE:.N PR] NT "Po r- ond e 7" ,: RE,TUFl f'J

366~ IF D(4)()PO AND 0(4)<)13 THEN PRIN

T "Due C.O I;'"d a. r» , •• RETURN

367~ IF 0(4)=13 THEN PRINT "Como~~~ vac 8 a EllS ·ta c: Iiii~ r~~ ando ? "; RETURN

368~ IF D(PO,11~INT(D(PO~1» THEN P~tNT ~A ~orda n~o estA pr~6~ a nada !~~RE1U FirJ

3690 IF[CS="DES" AND (PO=! DR PO=6)} OR

(C$~i'SUB" l~IND (PO=2 OR PO=7)) THiEN PIR] NT ~lmposslvel.":RETURN

37000 PRINT "Voc~ ~~:IF P~~6 DR PO=l THE N PR I NT II sl~be'!; ELSE PR I !'>IT II d~sc;t~ II ;. 37,l1t) PRl NT ,I. pe'li. CII c:.ord~. II

372Ql' IF PO=6 THEN f-'[]"" 1 :D(4)=7 :D( 7.~ 1 )=D~ 7~1)+.5:D(6~1)~D(6~1)-.5:RETURN . , 373m IF PO=7 l~EN PO~6=O(4)~6~D(6,1)~DC 6.1)+.5=D(7,1)~D'7,lJ-.5~RETURN

374~ IF V'Gi=2 lI'llEN PO""! ~ n (' q) =:1. ,: DI( 1 ~ 1);:;;:;]J { 1.111.~=O(2~1)=D(2~1)-.5~RETURN

375~ IF PO=l THEN PO~2:0(4)=2;D(2~lJ~D( 2~1)+.5~D(1~1)~D(j,l) .5:HCrURN

376,0 F~ETIJR:NI- ~

377ll'l V$~" *''' : IF ( N$;:::D$ t a) OR I\I$-FNA$ ( '8) )

THEN IF [;I{8 )=PO OFl:: (I dB) ""13 lHEN PRINT 0$ (8) ; II fUgl.H. II' ~ D ~ 8 J=~; RETURN ELSE PRj,1'I1 T "Q!'J,ii~ ";FNA!J. (8' r" 7" =RETURIN

378~ P'R INT "Qt_~~ ~:mb~gE!m ! 1'1 ; RETURN 379~ \1$= " * !I

3801Z1 PRI NT ,: PRINT II AI!:. ~~ld<35 s~o ~ H

3:1310 IF r>1 ( PO ~ 1 ) < >IZI THE~l PR I!'In "F'RDA, !I' ~ 382W I F ["<I (P'D '~ 3 ) < >~ OR D ( PO ~ 1 ) <: > H'II r ( 1H PO ~ 1))' TIHIEf'-J PR][rNT I!IPOPA Ii;

3830 IF M (F'O ~~:.2) -<) ~ THEN PRII(H "BORESTE u ~

394~ l!.F M (PO ,,4)':;0 0 lHEN PRJ NT "~Ot'iBORDD

!i •

~

3E5~ IF M(PD~l)~~ AND MtPO~7)~~ AND M(P o ~ :3 ) =0 AI\ID M ( PO ~ 4 ) =ri] THEH F'R I NT "il~'EI\IHUM A. "' ;

3B6fli PRINT : RETURN: 'JB7!2l V$= Ii * l l

3S81l1 I r 1"0 ()'2 1 HEN ][ T- C$"'" "' Bill!" THEN PR] NT iO En ~u,g '~W" 0 que 7" : RETURN .ELSE PR I NT "8~t:""r- 0 q L.l~ ? I' ~ RE"TURI'-J

389~ IF D ('1) <>,1.::;: THEN PRJ: NT "Como ~ S~LA t DID ? II! :, F~ETURN

39~0 IF O(6)(}13 THEN PRINT ~Ond~ vo~~ vai es p!"'emer 0 es f r€,lg ~o 7" ,: RETURI'!

3'910 10 (:n -=ell = PRHlT "Mt,t.:id:o Io~m I Ago!~~ es 'l:a!i30~9Iu 1"'"0. "

J921 DI2~1)~1=D(2~2)~2:D'2~3)-20:D~2~4) ~32=O(2~5)=13~D(2~6)~14:D(2.7)=23

393~ D(11)-2:RETURN

~q4~ r'R 'I' NT II G".le,~ J aglQi'" cis novo, ?" 395~ BOGUE 1736!l

3~6~ IF t'1$-" 9 I M Oil OR 'r'1'l'.-;' s" on M,!!;",," GlUEI':O ~, THIEt\~ RUI\I

'197v.J CLS: ["NiH

3980 PI'! 1 MT.~ PR] NT :: FR I NT ":SURP'Rc.oA ~ .~! ! ! 8URP~E$A ~ ~ I I ! ill • PRINT !~INCS NOS E8CONDEH 05 .; W$ (7) ~ I" [H~ UN" ~,[I$ (2) :; i"EM il ;:IW'$ 03,) ; ,i r.!~ 00$ ( ! 1 ) .~ n II ~ 'W$ ( 2~' )

3990 PRINT 'i~N6s ~t::: h~v",mo6 que \l'O!I:,~I" 4000 PIR INT II' NUNCA c: DIn,'segu i I~ i.~. d esc~,blfr'i iF

"".; PR I NIT : PRINT eu t********* F mM DrA ,AV!E:N' TU;;:A lkU; ** *" *" * ** II

1I01m END

2

&Ie jOgo nlo e: tram 0 q~~ p!t)))~c;;e~ An C."flrcgaro pro.gt.1lm!\l!, voc¢ .podJe tu ill inwprussm;. d~ 'ij,Ufl co~mlrcel1de :pe]':I'ei~am"ell:le (I, !llil:a;e ,erue' fal" ml5 dutllJ!ll.e "" -e,xectu;,ao, ver~, que as ,coi.sas nilo, sao t:a:o sffi_pJe'S (lj~rum •••

Brn D~g{l. Meslro. '0 Q~lTlpulador ~ urn J! pillofC$S't)r"que ,esooile' liittl'l. ,mU:llt'O e pcdle a lro~ ];)3J~3ivra~ ,apropri:acl •• SU[f,loflh~~, .PIlT: (!Xlf)IItI.pmO. ,qlU.fll Dt.Qmp!.'!UtdOf gscol:ba ·~filmes~' .. Voce eilil[Jio'pooe enitrM 'com '''JD~,g$. mest:f.e. ~efVe ALWN'!U 0' professor p@d'fm~:!o!;I]!J:de.r ~'5im'1 'IJ'~ ,j~ti.oH',. C~il"~ a l!i'~e: te:nil;<lili des:oobrir a raUo d8! r~p.oSl:a .flJIDIDle5 de e[lIU:ru (.10m II!r~~ tf:O' ~~mp~~. oomo ·'0 EX"fERM1NAlDOR 06 FfJTUIROt, ~p!iU'aJ. 0 q~al a LCesPQS~amMb~m pod~~ s~r ~ 'slm "'ou!~m1n' ~. 0. j(lgOr,;onli~ll:!l {lIfie voce QOnseglliw @'br(lf u~ respastas • "~im:" S=I!li'IIa.iitl:M., easo ,eM (lilt! a, camp"w:lM 'S'MipOe 'Wile woe. ],4 sa,bePO:i ,ql!1:~ ~~ns fifumC!l: ~'!~enrem j ~ e!JuLfo8,nliio.

MaJ~s t~f'de!. quando ja. ,e~lt~v,ef dOMillm:ldo perfei.taM,cnI:tl>l (l. Pif~'gf<l· rna, tam~ez. vQcfi:qlJeirli IlIl!!looifid~]o paiia. m1lld~ ·as J,tlg!!"as: au ltre-scenJtu novos as~l.nlllOS. 0 qllte' pooera. oons't~tllir 11m IiiQv,O de8!IJfio I

Mostr,~ a .~~. a_igoa l:ist~m dCI pra.gr3.miili. E]e nOi eerta ficMB. surp~esD com 9i faha de d~os. f.~",·~~tLe '~ma ~!{p~k<ll~o qlll<llIDqw;r@1l!l ,~~t~o d:iga~rnb~ 0 5~:g~~n:te;

., 0 progr13M3 'IlI[jJj2;aIJJD. ~iS'[e,mJa. R'oIan!iB,(ffio d~ ,lI!niUii!re de tex'IO OO'.mI bese oa:s ciilmde:r{:~[ica:! :~3!t:emliltki!lls daspa10.li'ir3:S ella .lJlnglQ JlOirt'Ugtlcsa. N&imj.a Icle~io crite.ri.oillil. d.e ptr.l:rametms permj~~ :liif~i~ rol:i~las de hW!~ 'r~ruati"'aM!l~te .['Itlnus JJJ reli(pO'Stas es:~U1:cas. I ••

NaJwralmen~el V\oOO sabe qlle~st@ ~~pJjca~lo' ,e :fanl~~s:iQ~a:,. ]'~ qEV'O~e~ meslilUO 'el1~f1OU OO:r.lli as l.inha:s, ~m q ue a:sp~]av~a8 ~iov!l3ri'fka())<l!s! P'air qllG',. eJThtoo,na c;a;tegoda ·'m.setOcs'·. ",osf/uiM ~e[1ll'e e .mll'lllf,cQc· pereero;;ejQ do :iCf\i\~~?

#01(15'-

~) S'I.l \'ooS t'Qmeter UlmellTQ 'qua:f.!ci:o 'miv~:r eJrutr .. do, oom um.apalav:[,I. a:pejl':te a [ec:IEl de r(lUlQcesso. A pa.iaivfa! iiIWteira !li"~:r.\li. cam;;el .. da ~ voo~ p,~d~ :r:a disiM.,JJ;;l! d~~nO¥ol.

2) Se dcs.islir dll dellcobriw a r~grlllcQJui~roo~tillllL!l:;u j'!ilS~d!OI,. ,e~t:r,e oom

<I :p3J1:3:"..rll: '·DESISTO··. -

112llZlGlI REM .: <.:: < D1 GA, ME13TRE- ANDY»» l1Z11U1 CLEAR 2rL1~~

llllQ~ DIM! S$(ll}

llZ13iZ1, GOSUB 219m

IG4~ RESTORE 183~

1~5~ SCREEN 1~3;CCL~R 15~13~13~KEY DFF 1~60 FOR S=~ TO 9

107~ FOR A=l TO 32

1~8e11 READ A$

109~ S$ (S) =8$ (8) +CHRS (VAL ( I', &~H+A$) ) 1100 NEXl A

111~ SPRITE$(S)=S$(S) 1 t21Z11 NEXT S:Y=56

113~ FOR x=m TO 16m 114~ GOStJIB 203m

115~ NE Xl

Ilbt!1 G081U1B 208e11

117~ LOCATE 11,5~PRINT "DIGA~U

1.181i2} 'lLOCA'TE 11 7 ::PRINT IIMESTIRE" 1190 FOR T=l TO 2500=NEXT T 1211Z11[8 'CLS

1210 X=80 ;,~Y=4'0:: G'DSIJB 203121:: S(lISUB 20813 122.m FDR YY=0 TID 2·~:LOCATE '211l1~VV::PRIN'T '" ~ "' ; iN:E1o:T VY

1.23~ TF'O'R X~21 0 3m; lOCATE X ~:8: PRlNT IM_

~:LOCATE X,15:PRINT "="cNEHT X

124m LOCATE 21 ~,2: PRl NT III DJIG,A OU

125QlJ LOCATE 21,3,: PR JI hiT "NOM'E DE"

126{ll1 LQC,A, E 21" 4; PR I NT UUMII

127r:!1 LOCATE 21.~ 10 ~P:Rl NT II ACERTOS III 12180 LOC,ATE 21 ~ 11: PRINT II SEGUIDOS" 1.29Q'l LOCATE 21 ~ 17 = P I NT n J OGIO NO., II 1300 BOgUe .213!21

13H!I LOCATE :2:~ 16': PRINT HDIGA ~ MESTRE: SEA VE"

1320 REM «« COME~D DO JO'O »» 1330 W]N~0:GO~GC+l

134m S=INT(RND(-TIME)*18)~1

135m LOCATE 23~4~PRINT LE T$(T£(S),1) 1J60 LOCATE 21~5=PRINT RIGHTS(T$(S),L-N ('T$ ( S) )-1)

1370 LOCA E 23,13:PRINT WIN 1380 LDCA.TE 23 ~ 20 ~ PR lNT GO 1390 A~T(S~1)=B=T~8~2)=C~T(8~3) 1401 liJEF FN 01<""'A51: ( Ll::FT$ ( A't ~, :i ) )

1410 JIF A=2 THEN DEF FN DKQASC(RIGHT$(A $,1) )

142m IF A~3 THEN DEF FN DK=ASC(NID$(A$J B 1»)

143m IF A=4 THEN DEF FN OK~ EN(A$) 1440 IF A=5 THEN DEF FN OK=SP~8

1450 IF A=6 THEN DEF FN OK~ASC(LEFT$(R! GHT$ ( AS " 2 ) , 1 ) )

1.460 REI'1 < < < (_ LOOP pr~ 1 NC I PAL >-)-)- > 147'm GDSUEi 155111

1480 IF A.=~DESlSTon THEN 120m

149~ IF REcC THEN GC"SUB 169f.il E SE GOSUB 172eJ

1510!a !FOR S""l TOI 1001lhNEXT S;IPUT SPR1TE a, It -=32 , -::52 )

1510 LOCATE ~3~ 3:PRINT WIN

1520 IF WIN=3 THEN FOR K~l TO 10~~·NEXT

I<::GiOITOI 1750 1530 GDTO 1 ~ 7'1a

1540 REM «« ENTRADA DE DADOS »» 1550 AS~u~;SP=~=SOTQ 16~0

156,O' LOCATE 2, 18:PR1NT A'$

1570 W$=IhIKEV$: IF 1,1,1$=,,111 THEN 1570

1580 IF W!i_ili ii THEN SP.,.SP+! r;:i;OTD la.2ml 1519'0 IF W$""CHR$ ( 13,1 AND LENI C A$)1 THENI 1640

16En~ 1.610 162~ 163ml GDTO 164lili

W= AS C ( W $ ) AND, 223: W'$=C!IH IR$ ( '!\oJ )

[F W$< nAil IORW$) U l iI. THEN senD 155~ A$~A$+W$=IF LEN(A.)=15 THEN 1640 LDCAITE 2! 18.:' PR I NT STR I NSS ( 16,,, II iI.) = 15,61121

A=LEN{AS):LOCATE 2+~EN(A$)~18:PRIN

1650 IF A(1 THEN 1550 16,ollll IRIE=FN DK

1,t, 70 RETURN

1680 REM «« aIM »»

169'0!I PliT SPR 1 TE S., (30 ~ III!!]) ~ 1 15' !I 8 1700 W~N=W~N+l~RETURN

171m RiE'M «« N,~a »»

i 721il1 PUT SPRITE 9, (31~ ~ un ~ 15i~ '9 173~ WIN~0;RETURN

174~ REM «« GANHOU »»

17'51121 SCREEN 1;: I OCATE 9,3'cPRINT "Paraban

s ! III

1760 LOCATE 9,4:PRINT STRINB$C10~~-") 1770 LOCATE 2~1~:PRINT "Vcc~ dls~obrlu D s.egrledo ! iI'

17B0 LOCATE m~20~PRINT uAp~rta 'J' p~r~ jogar de novo"

17'''?!m, A$= IN~EV$

18G0 ]F IAZ·""uJ HI OR A$=i" i" THEN .120m

1811Z1' GOTO 1791~ 1821il11 180T[] lB2~1

1B3m DATA ~,~~~~w~w~w!m,®,m,m~m~1~1~1~2 ~2

1840 DATA m~~~7c,7~F~1F~3F,7F,41~a0,e~~ lla , m ",b'[lJ " 3ra ~ 6t\'l

185m DATA m~0~0~C6,FD,FF~FF,FF~FF,7F~2~ ~ IZI, e, 0 ,'til ,,'l2)

1860 DATA 0~0,~~~~~~~DE~BA,~2,E2~E7~E7~ 6,7.~ 27 ~ 2A ~,2A ~ 2A

18~~ DATA 4~4~8,8~7~1~2~2,2,1~2,2,1~m,0 ~r:a

1880 DATA ~~0~m,m~m,0~~~~~~~m~m,18~E4,2 ,2,2

1890 DATA m~~,~,0,m~lJl~2~q!414,4!4~4,2 ~2

1900 DATA 2m~2~~4~,40,80~0~~~~~m~0~~~0j 0J0.~0.~0

191~ DATA m,m~m,~~0~~~1,6,B~1~~2~~2m!4m , 4 !;!I, ~4,0 .~ 41Z1

192~ DATA 0.-'2) ~ OJ) ~ 0 ~ iF ,,7m~ 80, m, Ii!I ~ IllJ ~ &:) ~ m 'I e, 0 JiI!lI~~

193m DATA m~0~0~m~E0~1~~a14~3Jm~0~~,~,~ ~~~IZI

1940 DATA m~0~0~m!0~0~0,0~0,8m~4~~2m~2m ~1r.11,1~,1~1

1950 DATA B~~8~,80~8~~a0~80~40,4®,21,2m ~,10 ~'E'J ~,6 ~ 1 _i eJl ~ 0

1960 DATA 0~m~~~m~0~m~m,~,~,ID.0~0~0~8~~ ,60 ~.:1L1F

197m DATA m,0~~~m~0~0~0,0~~,0~m~m~1~6~3 8,cm

1980 DATA 10~1~~1~,8~8,8,8~10,10~C,62~9 ~?! 7, e , 0 ~,~

199~])A:TA W, W.! 121 ~ r:!I~,!.l1!~ e, 0 ~ Fa ~:a'21 ~ en" Fa ~ 9 ~ 9 ,9, F9.,.0

2~~~ DATA m,0~0~m~~~~~0!m~m~0~0,3E,2A,2 AI, 2'A ~ 0

201faDATA, GI~ m~ i21, iG!I,.~" Ell! ~ ~I~ F8 ~ 8:8, Btl ~ 913, SIl ~ SA ~ aA:.~ BE!, III

2~2W DATA 0~m,~~m~~,~~m~m.m~Cm~e,CF,49, ~9 ~!E:F rn

2~30 PUT SPRITE 0~(X,Y)~15~0

20~~ PUT 9PRITE 1,(X+32~Y)~15~1 2~5W PUT SPRITE 2~(X~Y+32),15,2 2e6~ PUT SPRITE 3~~X+32~V+32'~15~3 '2 m7'~ RE l' URN

2~80 PUT S~RrTE 4,(X-64~Y-4m)~15,4 2W9~ PUl SPRITE 5,(X-32.Y-40}~15~5 21 ~r.2) PUTS!PIR I T E 6 ~~ t( X _. 64 ~V -8) ~1!~ ~ 6 21.i~ FIJI SPRiTE 7',(X-32~Y-I:'!)~15~7 212 a RE~rU'RI\I

213i~ LOCATE 1 ~ 15.; PRlNT Ii -.---.-.---~~-----

21. ~IGlI NEJCr v

216~ LOCAT~ 1~19~PR[NT

"

2171J R'EnJRIr'<I

21e~ REM «« ASSUNT08 »>" 2190 RESTDRE 2290

;22m~ DIIN T$(l8,)

2210 FOR N=l TO 18

22~(a REIAD T$ (N')

223mi NEXT N

224&!1 DIM T(lB~3)

225~ FDR N=l TO 18

22&0 READ T(N,1)~TCN~2'~T(N,3' 227~ NIE XT 1'111

:2 281GQ FiE TURN

2:291i1 DATA II~ FA I S II> ~ III! ATOR n ,ACAP 1l TAL ~,!~ PL. ANlET~ H ~ III IF I LMIE II ~ I. ESliADtJ I!

231i!!J1ZI DAl"A " 'R U] II! ,AIFRUfA ~ ACOR ~fiFLOR ,IAA~V ORE. ~ 'I' ESPC'RTE I"

2'311(2) DAl'A Ii AN 1'Ii1AL 110 ~" PASSARO"~," l[NSETD '" ~ ~1f"i1:L:J5]CA.~" PEl x IE; ill ,~III L[VROn

23,2~ [lATA 2~6,6~6,5~1 ~69~ 74,,2~ 7r:a~9.3,,3, 2~6 9'

233m DATA 5~2,4,4 163,7~4~b9 4,3,2~65 234m DA A 3~3 B2~6~73~73,4,19~S,2~65~76 235m DATA 1,W,67,1,a~,8m~6~64,B4,5,6S 6 9

236m DATA 6~72 bB~5~65~6S

Eu ACUBO

ElSte C um j'ogcl par,a t~~,3!1: a :s,n c\1Ipacidad!e d!~ d:edu~o.

V~~ ,~, 0 .~nsp<:lor 5lilV;i! doOle (D~,parturue;JnIt;(l, de In!ilr;::5il~gR~Oe:5: Cd~ mit!liliLi) e e5[,a, seodosubmeotldJ() a uma ~~.rie de ~esEes. qu.eEbil :P0li o"je;l:ru~ vo 1I ... a1~llif sua ~1[I:iil..Ilil2im j, pc~lSi,!i~ilmILt:~a.1l t:;:aplliejdlid~ d~ U:iilllr 0 com,put41d.Oll" 1M i!:r\l'esUg~~(les 'cl!"hwinail;. Como n~opode;mt'l~Ilc::~mduzir ,aqu] <'111 prov~ d~ CiO;f:fiIgl.:lrt! 'ClXlr8i~t,c!ltci<:l. 'V~mOS nQ!! ~~miU!liil 80 teste de:~n'W:s[.i,g~ao pOii' ,complJ,[3dof .•

o Ir,;;Qmput~dDrle:m, Oil C!l:~.c:id3.de de s.e'l".!lr!1ll~~I!rafIilS d~ clwfcrcwu,cs pi':r~l!Ita\'lics a ,art.ill" de urn Ct:I1!CI cO'njulliIJo de dad,os.EM I1m.p~scM d.e elnos, e]e 5e~ec]ona I.! m cf~mj nose e U!lilil.3i serle d~ ~ar~'t~:ri~ti(:.3.S pe:sllo~is q,lIe 0 ~dcnM1iiC<1lm, ~n:rft:i l<lmcnt,c. Voce tern d i:rci,to (JiI;l ~nh:;r~iil\ilJ;l!i1 uma testemuHha, do,crime:E1 :respe:ffi[}o de seis dessas caracl!eriS'['icas: pam ~SSOI" basra en-

t~1Ii '110 'wm:plll~;ad,.gtr ,cOm 'DrnlM~iI'O' ~Q.rftlllpl)if;l,def.l~e' a caracterw!iil:iea, ¢1~ejada. de' :£I.oo:rd'o COMa, .~is~a, Ique a:par,ece do lado les<l~em,Q da tela, o comp'UlmdQi le~ti0 m!05traas c;,ua:Cilieristicas dloli d;ferell!~S, l!~iPe~t(liS 'Il a ct:If,ae[e!,"stw~ cl.o Cr~l:'!lilmfisO. de iIli'oorllilo, oem. a, d,e.po~m,ento d::'l ~e..SUMIl.~ ma..lil.., ,Sle yo.:! snlber §co~he[ be. a:l!~rSNJi~,tas. pod,er'. desoo:br:ilf facil-

mflln1e Q' cl11pad,@~1 '

Depoijs aeil'ne.rassels perguntas i~OQ~ 'e~tr3Jcom (I, D~lllUro da puSOia, q,uju~~a &W" (I, 'i!nlmJiinQ5D. 0 compi!llll:aJdoli~inIt:i,c [l%v~la S~ :V1@1!Xl ~G~f-' 1:e1J. ~,u lI!io.

1~~~ REM «« EU ACUS~ - JIM/ANDY»» l(i\am RIE:1l1

192~ KEY OFF

11(13121 SGREEINI 0,~ m ~ m : 'COl.OR 15 ~14 " 4 = W I ])l'H 36 1 ~.q,~ G05UB 135:1!

1 r2J '512' GOSH:a i5l,6·m

Hc!l61;!l iGl],SlJB 17010

1~7m FOR B~l TO 6

1 ~9~ GCH3UB ~21i!1911ll

109m NEXT ~

11mm LOCATE ~~18:PRINT 1110 L~CATE 0J13;PRINT

o n~mero da ~eS50a

8TR I NG* ( 39 ~'! "')

n A~I!:!Ira ~ntn~ c;.om que vcu:ea,!: hi:!.

'qUE!'t:~~H!i!F.!,t;eu 10 'E; rimE. OJ

112!Z1 PRIiNT il A b,,~stemunha disSE que

'" "':: PA: [NT

113m RESTORE 1330 11~PIll F[J:R N1-1 TtD :11.0 11512J1 R:EAD A$

1160 IF Wll)~N OR W(2)=N OR W(3)-N OR W (4) =N THEN PRINT '~O c ... illllirr~so"'.~ A*;·i .11 ;.9 $(SI~N)

1170 IN~>:T NJ

1181Z1 A'4I,=:I NIKEY$ : ] F ,.tA$ < H 1 "~I OR A$ '} 1'4!'1 THIEN

i191iiii

119m CR""VAILIt A$)

1200 FOR Y=12 TO 21 ;LOIIlATE rlI ~ V:: PRlI'NT ST RINB$C39~P P)=NEXT Y

1210 IF CR=S THEN 1290

122~ LOCA~E ~,15:P~[NT 11115 pstor' Ea bbs I!

e tGUiSI rd i3. lSi bbs 1 ~Il

123W PUW "JL 116ltedc 12'it: II

1241m PRIt.IT ~P'fUli\lT eu D cr-irnino5o elf"a Oil 5U sp'E"i tOI nQmt:'l'"o ~I ~ S ~ " ! '"

1250 LOCATE ~ 2~:PRINT ~Ap~rt~ qualqu~r

becij3 pqrC! j agar de novo"l

J261tl) A'm=IN'K'EY$: IF P!'$~ III Ii lfHE~ 12b~, 12712]1 FOiR NI=0 TO 9 :Q(!.oJ (N) =0,: NEXT N 1280 GO'-O :1I.05fa

129'0 LOCAiTE III ~ 15; PRJ rn !'F'~rab~r1is ~ ]lf1lS~~t

I. OiUL ~ v ~irgl(i'f1I ha , Esta r,~baixal:1liD

~;lI'- Gi bb5ii ~ I,

13~~ PLAY ~~16cdercJ2f~cl~12f"

1310 PR] NT :' PIPIINT Ii Dg,en her desr.: 09lriu qu, em er-a, 0 c r-iliflinoso ~ pill''"t1r das pfs'tas

. ,

di5pon1.vei5~n 1320 GOTO 125'~

133~ DATA" ~r,)" s " e!'"~" ,8" IE?ra II ,," t.il!"illha

c:a b~ n. 0" ," ti ro he c.a be 1 0 n , Ii e61 t.ava cile'~'

8 II em l.;:~va 'I. ~ i'i t l.n hiE! ~ 1 ,he 5 III ~ ,I t iln ha It.~m lriJ iOlr i"~ n ," -tin ha ~LIiI1I'~ III'

1340 REM «{( INICIALIZA~~O »» 135~ DIM S$(4~1~)

136~ DIM W(4)~QW(9)

13]0 DIM LS(1~,4)

138~ ~ESTQRE 1450

1390 FOR H,:,,:l TOlll!J

14t':![11 F[},IR; ~~=:: 1 TO 4

l410 READ lS(N~M)

142~ N'E)lT M,

143S ~EXT N

14-40 REl"URN

lq50 DATA HOMEH~"ULHER~HOMEM~MULHER 1. 46 ~ [I AT A. GORDO ~ I"IAG'R ~ ~ FOR TE .~ p,~l, I nn Ill; 7'~ DATA AL TO, BRANDE !i 8A, I >::O,~ PEQUENQ 1480 DATA L]SD,CURTO,CRESPD~LDNBD 149~ DATA BRANCO,PRETO~LOURO~RU[VD 1500 DRTA JEANS~MACACRO,tAPA~~HDRT~

1 ~ 10 Drl 1 • I T 1'41-11 NCO _" fjU r. ~ eN I S ~ 'G Llil...,Hl-i 15'21f) DATA Alii IS, 1'1ARRON9, VERDES ~ PRETOS

fU j, L .. , •• l [_, I.LL!IJLI"'[~·. j tJ: 10

! 5<HD OAT P, r'] s 1 ULA ~ 'I"; 11'11 H ~ I AL:A, MALA

i 50::.0 F:r:M .. , ~ 1 ~L('j .. ,. > ~:.

1 '-J,' ,W "Ifl""' 1 : ~Jt r.. E E 1\1 t1: L·J 1 f.)TH 40 1 :5 7 ~ I-' U I ~ IIJ"" I ~ I n ··.il~ B I Ie F' B

1 ~if]l' I Or.A-ll 1·1 ~ D: r'rd 1\11" r-IU

.1 59fll r~r ""r II I • 1

16£1.l0 Nt:, I hi

L~1~ RE' TORE 166~ l6?0 FOR N-~ TO 11 1630 UI A rr- Ii'.) , IN

1640 REnD A$~PRINT A$ i ~1~111 NE)I T 1'oJ

!b60 DAIA ~-SLxa,l TIPO~2-ALTURA,3-CABE La, 4-COR' , • 5-TRAJE. 6-SAPATQ. 7-0U-UJS ~ tl N ARI Z ~ 9 au rr'l(1~3

.1670 LOC:I1!TE 0.18 c PJHN r " 5C:OJ h~ uma i;:;

ta ( Ll)_c.; Jill. Ii ., II

1681L) RCTUR[;l

16~~ ~M «(l ESCOLHA 009 9U3PEITOS »> >tH'

1 7~~ 9= H IT (RNiD ~ - r I ME) * 4, "'1·1 1710 FUR N=l to 4

! 7~1ZI W ( N ) -CJI

l?JIiJ CH=tll

114~ A=]NT(RNO(l)tl~l+l 1750 FOR O~l TO 4

116m IF W(Q)=A THEN CH=i 1770 NEXT _

1781 .. ) IF CII='k IIIEN 1.730 ! 7913 vH I~ ) ""Pi

1800 i\lEXT r-.I

lBl~ FOR N-l TO 10 1-820 l OR I~=l TO 4

la'3~ A-I NT l RI~D ( .I. ) :t: 4 ~ + 1 1840 SS(Q.N)=L*(N.A)

8~~ NE}lT Q

1860 NEXT N

1 871Zl, ~'"jo::::; W ( 1 ) ; G,QSUB 190m; tr;J;;;;; I!,'H 2 ): G Q,SUE,I 19m o

188m N=\AI ( 3) ~ G06UB 19!210 = N=W (' 3 ) :: BIJSUEi 198 ~I

189121 IRETURN

19~~ A=INT(RND(1)*4)+1 1910 S$(6"N)=L$(~~A)

192m T=9+2:IF T)4 THEN T:T-4 jQ30 S$(T,N)=L.(N,A)

1940 IF A(>l THEN B~A-l ELSE 8=4 195~ T=T-2:IF T(l 7HEN T=T+4 1960 S$(T.N)~LS(N~B)

1,97121 :RET'IlJ:RN

198~ ~=INT(RND(1)*4)+1 1990 t$(S~N)=L$(N,A)

2~~121 IF SOIl THENI T=9-:1 IELS'E f""iJf 2010 S$(T~N)~Lj(N,A'

2020 IF A{)4 THEN BcA+l ELSE 9=1 :2~311 T=T-l = IF T-1Zl1 THEN T=4

2040 S$(T,N)mL$(N~B)

205,1i!I r=lr-l: IF T=1ll THEN T=4 2~6~ 5$(T~N)~L$(N~B)

2t!170 RETURN

2,12180 RE M c <: c ( ESC'OLHA II'AS P [ 8T AS ) ,. " )- 20q0 A~=]NKEY$:IF R$="" THEN 2~9~ 211Z1m !JW=VAL It A$ )

211~ 1 F(lW'~m CR, QW)9 OR [IW t gW) <>(1lI1 lHIiN 21U9~

2120 PLAY '!L8F" dJIW (a,W) =1 i G1W=IQW+l 213~ FOR PE~l TO 4

2~40 LDCATE B+(PE*8-7),1+QW 2150 PRINT S$(PE~QW);

:2'16~ NIEXl :F"E

2170 RETURN

4

Star Tre!k

J~ rO:l!':am c:;criltlS vell'soes de SUlf Tliek J1M'a pra&i.eam~nte tcdru OiS micrm irurlQ3idos :n:lO mercade, o que dem;cHl8Lr<tu. D{liD~·blrldad(; deste jOgo .. A:tllo. fa '!I'DCi: pod~ cQ.~I.andaf uma Nave EStieIDa( dCli classe MSX. C!o:m: ~'odos os fasOires ~ S~a:!Isorcs a que tern di'm~Lo. SUII. m.iss:5:C e eliMin,a,( es perjgpsoi Idi f!~O!lll IlII111,[es Q~e sua nave !ida viIl,Poriz,ada 01!ll fiq~e ~I,lm 'Ilsergia.

Esta. verslo de jogo, s.~.o" Trek iRd.ui tim "H[P~ cstclarcomp~c[o e mevim~nlo~ em ~ j ternne :r·~llJ~·' duml'l~e oscmtlba~e~ tom 0 ~DimiiEl_o e q,Ua;n:d:OI II lD·a ve ,Bl,mca em uma b~se ,e-5~e]aiW', Sr.:lgu~ II m exi["<!'I,Q do WI·e!ll~m'atl~lI!l, d.~ ]2.:544 Ptjgi11i!3Jli lilrulituhldo: •• A[pretld;;l! ·ai. Corn:audillill" lI.ms,. Na\l'·e E:m~JiIl:r em 4.000 Lien!;,,":

",ida, 20: b~Uu)es de crediwsi!!:alac[io()Ji em eqrnpamellto e as VU]lBS de [iOdes 0iS! [dpuJa1li[~5 da nave.

2. NiQ 'VQ~ft~ iC'egia!lI' Use Q~ s~m5gm do;ii naiVe p~avedflc;a:r s~a in:),dvilia lila ga]Ili""~I!i ... Apl.'lrLalu!:p a tecla L, "'{lce mila 0 Sensor de: Longo AI.canCJe (SLA). q,ue Mostra a po.slCiO da sua fti~e, diM, bases les~!dIR5 I!l!! das nav~ ~n]mips. Os 5C'liOlJes ,o~pa:dOl! pork~inEOrlS sia rep~erltiu.1us no SLA por tlJnl cireulo ~{;U!U UJIlIli Jlecha, 0 si:m'Onl!o, de Marilic,dJel1:S diegru,cna. Os sere .. 'res onde existem lba~C!l estela re!!, ",ilia fep"~nl.Oi!:dos. pm !"!~~kcl!lu OO~ tlJlUlli. cruz, 0> !iJimbol@l deV fll'JiJIS. 0. deusf.I. do wn.O:r. Os selliOires oc.upades tanto D or fu~j_mWgo.!i ('.o:mo por bases eliti~[3!r~ sao ]:nJ:diICad,QS por 11m qu~~ drada. Cada '\i'(;zq,u~ \f()C~ ~$0iI. (I 8~~~OIi dclnllg:o 8.kllllIDCC'" VOl:~ gmaa .5 IJIl]d,;1.de;s die fil1l.Cl:lgia do ~it>o, usado para es ~,Olores.

3. Niliol 11J.l~"n (II inlmigo de Y~ltl!il: Apett3:W!idcHl ~!llcJa C, voo~ Up. 0 Sensor de Curio Ak:'-ance I(SCA)I~ queind~c~ qUim~rnl. i~~limigo8 e b~S'~.ei:itel~r~. existem ne set,{lf eoru (1'n:l1:'!lote se em::OJID(.fOl ne :momeIlm. Calla Ve2: 'Qluevo~ d liga 0< SeA, s:~o OO~5llm;~das .5 untdad~s d~ ~n~rSJI3! do t.ipo u:sad:o pal";I! . . (l~ meteres,

4. Clili.dDdonuli it flillll:llJ !l'rh~ I!'>liIlu',gi,a.:! P9Jii,Q .U'leaibastJctlc:r 11. :IDIiil.li'\e, voce a:ev,e atr\lCru" ~m uma bee ~ste~¥ .a.p~rQP_iloa~ecla A. nepainel de (iontw~!ll e ~llijil[ildo '0 coruml!.; d~ d]r~c~u pant pOc.')iciionar a i'ba.J;i~ ~!:.~1~!' ~o !;,:~f!~ro dB. tela, Depc,js de al'r~C~ ,. voce recebetd .210 l.uil.dades de ene:r.~Ja pMa M mOEo:res riia Ma'W~: e m ais 20 'para osfaso:res (3. ~n(!:rgia da b]~~dag,em Il~Q pode $~rr;~I)i'(asl~). A capa.r.:id~I!d!~ m::b:j.a ~ d~ 95 ILl n id!i!d~s, Niio !l]tl~ap;;i<81'" se esse ]~m:iue, eas 0 CQ:[I1uiri:olrl nave !iOfrf£il uma expJ.osao ..

.s. Nl'io perm ~e.po ~ Como' coma:nda:lHe da EsqlUJI.d!wa Es:tt]ali. wa mis~ dill ~. clCll!;rui'r [~!i ru~]"ig,n!<ii~1Si 1<lirtgOml~ {I !T!!;lIws. d~pif'~!!S~ qjUiIilpudJ~:!.

Se l:Iouver kliflgCUltll no setcr e.m que V'oce se fllC':IUII[l:'i3ij .apeille:.li.[eel,a P para fazer OO~1i e sinal. d~PPSl~S dl~ Combtalt~ e d~i:rUdo ao ataqij~, Cr}loqJ,l(;l UIImII II. !'la'\i'~in~~iga nOCt;!1UO da tela, n~aJlldo () '".O~tro.lc d.>i:l dire~iQ Voys"u'ck OU ~:e-c]ti de contro~e diDI cursorje 3J~ene Q. botio de tiro Oil a barra de; espa.go pa:ra di ~p.aa:'ar os. fasores.

Se voce ntic! agir c!O~\ r\El.pidiet sufi:ciu[.e~ as na.vcsdos li:liI:tigo~ come~;u-:lQ a re8pO:nndi;;r !to· fugo., Irc(lI:lOIl,I'HJo 'eIllH~rgia. da SII;;! blir-ldiagem. Nii(! dGo' slstalPrccuee ·"Hm,pat'· 0 serer ~[es d.e p;a:rtirpafiil cueras 'bata]L'i;liIlll •. C'l1iiso,. pore m, a I:llc',rgia elm faseres se esgote. ?Ji(peFte a t~~ ItlITURN p.,11 .fu~ gi'r do C{I;I~~b\iU~ e podu se rea b~woc( em u.!:uilJ1lI na~(l.

16. ICom.o .mIU!li1w· de :Sll~~r. PllifaviajM pm-ill. qjuai..qllaier se1Jo:r ,.e f,I[iClCioo <Iilflenilr a teda W ~ :seguida por urn n"61~liIfO e!l~ 1 e " qoeindic-a 'ei' fatoil' ·'W.;UPU C~ di~1 if! ~i!l qJIJ r; l;'cci dcse,j.lI. 'Ii ia.j ill'. !Em 8~[!:~ida. ,~ pr~ci~)!) ~fidicar 'a dire\tao do mo~memol, ~loolhe:ltd.o lim. ~Umfil'OI entre 1. e!!. Cada jlliUlllU~m (:'0[-

r~lil'olild,e Ill. IJWln-a d]re~iio 1'1.10' e.l'lpar;;:o. Ciome~ando ~Hl' topo, da ~c~.3J 'Ii: oo~lru~uudono' $~~t:i.do dqs ponteil[,QIll d(!1 reJ6gio.

'1, ,ii) ~~:fto' :!jup!lemo'. No i!l~ci<o d!~ mi!5sio, v·ooees~olhe {I gray de d~fi~ culdade·. N 01 .[jivel .. lniElilis fjc]~ "aCe tern que deSlfil!lirWinml[ilooiS:; 00 uruv·eru d!!li dilnCMlfdade mtdia" lO~!l(l nlvel m,ais djfltil. :.HI. QuanJJoY'Oc@; !:on.se!:l!l~ oonCluffi~ l}~Ul m iSS8tlCOm SI!H~~!i'J!O., a Ccnlf.al de tCnnlltQ~:!l d!(~ 'k I i ngons e' illlifomiliadae e,llv:ia. liMa, nov,aesq.nd:f'3'j COM 10 Illaves a m.a:is que a I3illilte~r;;l:lr. 0 dcsa:fio supremo llionslsLc CilIl'I. ~,ocaLiZlir e d.cstruk 200 na.Vtl',.~ imli.igas.~s~~ pre~r.~~::fQ I c::apil1il{lK:i:rk? .B:nwt.'l<@1 pode oo;m;~q;a!i •••

1~~0 REM «« ST~R TREK - ISSI )})} 101~ MAXF]kE9=2:0P~N ~GRP:G~ FOR OUTPUT

AS 1

1~2~ SCREEN i:KEY DFF 1~30 RESTORE 3340

1 ~4~ S'$"" H i'i: FOR IN=.~ TD 7: READ A ~ S$=S$"'leCH R$ I( PI) = NEXT N

105!ll SPRJITE$(1)-S$

Hl160 S$"""": FOR r'>1""12I TO 7:~ READ A ~ S$::::;:8$+CI-l ~$ ~ 11'4) ~ NEXT N

1~7~ 8PRITE$~2)=S$ U1181!Z1 DIM S ( 1 5~ 2 ) 1~9~ G08UB 17921

11~0 BEEP~PLAY "038L1604CL8FFFLB~L16C.O 3·A.04D • L4G!!

lH.l?I GOSUB 188~ 112W GOSI:J8 158~1 1130 GOTO 12S~ 1l411ZJ A$"" 1 NKEV$

1150 IF A$~nu THEN GOTO 1140 .1161[1 A$=CHR$ ( Age ( A$ ) At-lID 223)1

1170 LINE (184~i0m)-(24B~148).6~BF 11B~ IF A$=~L~ THEN GOSUB 2~3~ 119m I F AS""" C" n·IEIN G06iUH 2170 .12ralZl .1 F A$~" l.>J III THE!'>I GOSUB 22 5J~ 1211ll I IF A$- iii A" TII-IEN GD51UB 253~

122~ [F A$~ III P II THEI\! G05UB 2821Z11; PUTSIPIR.Ii 1" E :2~, (~~ ~), 14~.2

1230 FOR ~*::1 TO 2:~I~ l'>iEXT 1,1

124 m I F DEAD'" 1 I]R ENE,FI ( 1 OR E.N'E If<l"" UU~ TH EN GOT[] 137~

1251211 COLOR 15 ~ 13,

126~ LINE (95!156)-(135~191),13~BF 1270 PRESET (95,160):PRINT ~l~E~ER 128~ PRESET (95~17~J:PRINT ~l~SHIE 12'90 PRESET (95.~ 180) = PiR'~Nl tn., PHIA,S 13m~ LINE (215~15b)-(275~191)j13~BF 131m PRESET (215a160):PR]NT ~l~BEC

132~ PRESET (215,170)~PRINT *l,ALJEN-EM E

133m P:RESET ,( 215 , 18~,) : PR I NT ;)II; 1. , 3-BD 134~' IF EME-A'llEN THE,N GOTOI 338m 1;$5~ G[]T(] 114·0

1360 «« N~VE DE8TRUIDA »» 1370 COLOR 10,6,6~SCREEN 1

l:SSiIl LOCATE 1m.~!!:· PR I NiT" QUIE ~EN.AI ~ '" 13.9~. LOCATE'?', 3 = PR I: NT II! -------.----- n 140m IF ENER(l THEN M.=H fi~au ~ d~r1ve

e· teve· de"

141a IF ENER= H1I0 T:HEN. M$~ n II""e68 bstJ wm.01L so fJ.r-e·c::arg a ch~ Ii

142~ IF DEAD=l THEN Mi$="f~d. destn.lli da. Fl'e los n

143~ LDCATE 2,7~PRINT "A Nav~ Estelar E

f1 t:.e F PI'" i '5;ie '!

144~ LDCATE 1,9:PRINT M$

1450 IF ENEIFHl THEN M*""" set'" .aball'1ldlonaCii

a, m'~5; 0"

146~ IF ENER~lmm THEN M.=~~n~rgi~ e exp l!.cd,n.u, mas 'Oil

147'm IF DEADJ:iOIl THENi M$I:i:l"i'ltiemfln1ac::,o9 ~~ 1 in, •

Q!'OIil S ~ mas ·0"

1480 LOCATE 2,11~PRINT 14q~ LOCATE 1~13:PRINT hita deC:l,diuu

1500 LOCATE 2,15:PRINT

t'l$

J!Almiranb~ Vam·as

o

'~'cm6Indo d Ii! "

1~10 LOCATE 5~17.PR[NT "outra Nave Este l,aI~ •. H

152i~ LOCATE:=;, '21,: PRINT "APERTE . C· PIAR,A

CO]"IE9AR'~

153m A$=INK:EY$: IF A$""ri II THEN BOTOI 1530 154W A$~CHR$(AgClA$~AND 223)

15~m IF IA$<:>!!IC'I THEN GCTO 1530

15,61[21 aaru 109~

1570 REM «« TELA »»

1~80 SCREEN 2:COLOR 11~1 l:CLS

159m LINE (16~16)-(176~148),4,~F 1600 LINE (18~,28)-(24aam)~6,BF 1610 LINE (18~~1~W)-(248~14a),&,BF i621tl LINE (121 ~ 2) -( 256 ~ 14)1 ~114 ~ ElF

163~ LINE (8~156)-(256~191),13,BF 1640 PRE!3ET (2~El,18):PR]:NT #l~IISLAILI 1650 PRESET (208. '9(21) : PH Nil *1!!, III SCAD' 166,EI COLOR 1

~67m PRESET (55~4'~14=PRINT *l~~*ALERTA VERM'ELHO$ II

1613~ !COLOR 1.5

169~ PRESET (16~160);PRINT #i."MOTOR£S:

111

1701Z1 PRESET (16,170):PRINl :tIl,"BLINDAGE

M= II

.i 711Z11 PRESET (16 e lSm) : PRINl fa, "FPiS()RE.8:

1 72t!1 PRESET (144 ~,l bra ) ~ PR [NT *1;1" III SETOR:: I. ! 73m PRESET (144 ~ 171Z1'l : PRINT #1 ~ iI tNU"UGO

S:: II

174121 PRESET (144,181Z1)I:PRINT ;tn,IIElIASI!2S:1;jl 175~ PRESET (80.88),4;COLOR 10

1760 PRINT .1~CHR$(1)~CHR$(90)~CHR$(1)~ CHR$(a2):CHR.(1);CHR$(62)~CHR.(1);CHRm( 91)

.1. 77fi'l RETlIRI'..a

176m REM «« DIFICULDADE »» 1790 COLOR 15,4~4:SCREEN 1

18mm PRINT HFacil/Regular/Diflcil?n 1910 A$~INKEY$=IF A$~"P fHEN SOTO 1910 182~ A$==CHR:$ 1( ASC (Ali) AINU 223)

183~ IF A$-"[)" THEN ALI'EN""2tll1;PlIETUR~ 1840 IF A'$""" F" n1~N AL I Ehl::::;10 : IRETUtRtl\1 185111 IF A.$=" R "' 'THEN tAL J ElM'"' 1 ~ : RETURN 186~ anrn un!J

18/~ R~M ~~<~ INICIRLIZA~~D »»

1880 FOR' 1\~=1 TO .15: S (N1 ~ 1) =linl. S't( Nt ~:2) ""'0: NE :0 N

189m FDR N""i TO ALIEN

190m 8EC~INT(RND(-TI"E)*lS+1) 1910 IF B(SEC,1»3 THEN GDTD 19IDID 192~ 8(9EC,1)~B(BEC,1)+1

193~t NE)!T N

194~ FOR N-l TO 3

195~ PO~JNT(RND(ll*15)+1

196~ IF 8CPO~2)=1 THEN SOTD 195~ 197L'1J 9(PO~2)-1

198~ NEXI N

199~ PHAS=25~ENER~25=SHIE'"'25:BAD~m~EME= Gl:8D-ri!1

2~~0 SEC~lN'IRND(1'*15)+1 2~112J RETURN

:::~20 REM < 0( < -: S:ENSDFi DE LONGO ALCANCc ;.

»>

2~31l11 PLAtY "L8CDECD'E1!:: PD""! 20~0 FOR N=l Ta 3

2~5m FOR M~l TO 5

2~b0 PRESET (188~M*S~18+N*16)~6=COLOR 1 '(2)

2070 CH=71fIF PO=8EC THEN CH=79;GOTO 21 10

2~8W IF 5(PO~1»0 THEN CH=75 2~9~ IF 8(PO~2)=1 THEN CH=76

21~m IF CH~76 AND 9(PD~1»0 THEN CHD72 211~ PRINT Bl~CHR$(l)~CHRS(CHl

2120 PU=PO+l=N~XT M

:::!:13~ ~IEXT ~.a

214,0 ENEh'!DIENI£.R"-5: PIt..J1!!"( "'EDCEDe" 215~ IRETUPH"4

21b~ REM «« SENSDR DE CURTO ALCANCE > )>

217m Pt .. AY "L8IC:::D:C:CEJE'1I

2180 COLOR 15:PRE9ET (2~4,11m),6

219~ PRINT #1~CHR$(1)~CHR$(75);":";8(SE C,i)

..", 22~~ PRESET (, 2tt1:4 ~ l3aZl). ",(3

""I 221m PRIINT ~H, CHR$ (.1) ; CHR$ (76) ; "'; "; S( SE C ~ 2.)

.2'22'~1 E NE.R=EN'E: R -5 ~ F'LAY 1.1 E OCEDC II 223m R:~nJF(N

224~ REM <:.;: <; .:: SAL TO WA~P )- >. '>)- 225fl1 L INIE (Ill', 2) - ( 2:SJ6 ~ 14') " l2 ~IBlF

2260 PRESET (1&~4).14~PRINT #l,~F~tDr W ar-p (:1 a Ed ?"

227m A$=] N!I<EY$

2280 IF ,IA$( li'11' OR .4$> "i, 'Si Ii' THEN iGOTO 227~ 2291rt1 Dl5i""Vj!9L (AS)I

2300 LI~;.ItE (~, 2.) - ~ :2:56 ~114) ~ 1m ~BF

231m COLOR 1;PRESET(16~4)~14~PRrNT *l~u Dire~*o do saIto (1 a m) ?H

2,3211ll ,Ri$"" I NlKE'f$

233m IF A$<: '11.1~' DR A$}iliB" THEN GOTiJ 232m 2341lJ LINE i( 184~2:8)-( 24B~81~)1 ~6~E!F'

2350 DR::=,V,AL ( A,$)

236m COUJR 11

23/0 f.OR IIJ=b~ TO 16 STEP -,4

2380 LINE (Q~Ql-(192-Q~164-Q),INT(RND(1 ) *15) ~B

2390 ~iIIEXT Q

240~ RESTORE 251m

2410 FOR N'~l TO DII":: REAID XY: tt'4E'X T N 242m FOR N=l TO DIS~9EC=SEC+XY 24~W IF SEC<l THEN SEC=SEC+15 244W IF 5EC)1~ THEN 6EC=~~C-15

24 51~, PLAY III U3"1 +CHR~ ( ~~+b6) :; NEXT N 246~ FDR Q~6m TO 16 STEP -.

2470 LINE (~~Q)-(192-~,164-Q)~4,B 2.48~ NEXT Q

2490 ENER=ENER-INT(DIStl_S)

251Z1W L l'I~E (llil ~ 2' ) - ( 256" 14 ) , 14~ 1[111::: ~ ,RETURN

2~1~ DATA -9,-4~1~6,5~4~-1,-~ 2520 REM «« ATRACAR »)) 2539 LIN~ (~~2)-(256,14)~14~BF 25,40 PRE6ET C H) ~ ,4) ~ 14: COLOR ::I.

25~,m, If 8 (SEE:,:2) ""&!l THEI'<I PIRINIt+.1 ~ ,hN13io h a b.3ses nEste SB'tCH". _ • " : IF'L,AV "'L2,8E,c":, RE TURN

256m )t=INT (RND ('-TIME):+: 100) +5"0:: ¥=18.: D,I8:= 1

257m PUT SPRllE 1~(X~lNT(V»)?11,1 258'[(1 IGOSUB 325'tlJ

2'590 IF R,I=1 THEN D S=DI5-! 260m IF LE=l THEN D19~D[S+1 2bl~ V~Y+.5:X~X+DIS

2620 IF X<15 THEN Xg15

263~ IF X>17~ THEN X=17~ 264,1lI I F V\. 9;5 THEN GOTO :2 5,1&1

2650 IF X>SS AND X(102 rHEN GOTO 2720 266(Z1 I: F )! (b. 5 OR' )l, ;;.125 THEN !PRE!3ET (16,4 ), 14:PR1NT' #1 ~ i'A BASE E!3TA IFIDR,ADE I~LCA NCE:~H:8[)TO 275lll

267'~ PRESET (16,4) 14:: PR INT tU ~ "voce DE ST-IRUIU A ElASE ESTIELA'R!"

26Bm PLAY H61IZlEDCC"

2690 S(SEC~2)-1ll

27"ID&!l SD-SD. J

27 H~ GOl'lJ 2n}El'

2720 PRESET (16,4)~'4~PRINT #l!"voce AT RACOU NA BASE •• _"

273ml ENEn~ENER"'_21Z1

2140 PHAS:::PHA'S+2Pl

275m FOR N=l TO 700:NEXT N~8EEP

2.7612]1 IF ENEF<') 95 OR :PHAS>95 THEN ENERellll1 (1lI

277a LINE (0~2)-(25b~14)~14!BF 278~ PUT 9p~ITE lj(0)0),11~1 27911.1 RETURN

280~ REM <~(( rDMBATE »» 281!Z1 REMI

282~ LINE (~~2)-(256~14)~14~~F 283(Z1, D'EAD~m

21;:1.40 X D""2 '~ VIl""2'

:28.50 COLOR 1

28~0 IF 8(SEC~1)~m THEN P~ESET (16~1),1 4 ~ PR[N"f 41, '''NAO HA !MAIS [NII'1:EGOS A'QUI ~ eu :;PLAY "'L4GEC"I': RETURN

2'870 X=lfNT (~ND (1) *140) +3m: Y:r:;;JI NT (RNiD( 1) * 12~) +3~'

2a8~ [;05U,B 32:5im

2890 PUTSPRITE 2~(X,Y)~7,2

29'tllE?l IF FI""l AND PHAS)'t!) n-m:NI 60TOS13~ 2910 IF KJL=1 THEN S(8EC~1)-S(S~C~1'-1= ~;::I: L=m, ~ GClITIJi 2830

2920 IF LE~l THEN XD~2 2930 IF R[~l THEN ID""-2 2940 IF UP=! THEM YD::::!2 295~ IF DO=1 THEN VD=-2 296. IF EX=l THEN R~TURN 2970.X~X+XD~V=Y+VD

29S~ IF X(2m TH~N XD=20~XD=2

2q90 IF X}lb5 THEN X=165~XD=-2 ~~00 IF V(18 THEN Y~16~VD~2

3~~~ IF V)135 THEN Y=135;YD~2 3~2~ IF RND(1)(.95 THEN GDTO 3060 3r&J31® F'U:lIY ""Slll102L4C"

304~ FOR M~l TO 5~:NEXT M:BEEP

3~511n SH I EcS""tL E-l : I F S~ IE <:~, THEN DEIAD~l = '~ETlJA:N

3~6~ LINE ( 95,~ 17m ,- (.135 , 1 ~'lZJI) , 13 ,BF :: ctn.n fi1 15,

307~ PRESET [95,170):PRINT .1~SHIE

::.:; "~J81Z11 PRE8E T ( 9'5 ~ .18 ~ J ~ PR I "rr ij 1. ~ PH AS

3090 LINE (2.1 s ~ 17m) ~ (27'5,179) ~ 13, BIF 3100 PRESET (215~17~)~PRJNT ~l~ALIEN-E" E

311 c:J ISOTO 2881Z11

J120 REM <""« ATIIR:AR :;.;:,.» :3 t 3'~ [;OL[J R Vl

314~ PSET (16~148):DRAW nE75~ 315rl1 PSET (176 ~ 149) : DRAW !'1-I75!1I

.!.J.6'tJ ~ 'LH r ~ 14Lo '.JLlJu UI-;L~

317~ FOR N=l TO 5~=NEXT N 318Q:l PHAS=PHA8-1

AI .i)] '-~Id II X nJb AI\ID X {91::1 AND '\()-6i AI",j1} »-. 70 c(' THEr~, EMIE:.::Ei<lE-i·l'. KIL..:l =,PLAY "S.11L8CD'EL2G

"

32m~ CDLO,R4

321~ PBET (1&~~48)=DRAW "E7S" :~220 F'SEl' (17 6,~ 148) : o,RAlo'J "H7 5 '" 323m BEEP~6DTD 291~

324~ REM {«{ ENTRADA DE DADOS )), 325~ VA~STICK(~) UR STICKfl) OR STICK(2

3260 IF 'V A::::; 3 THEN RI=l ELSE: Rl:-ill 3270 Ir VA=7 ~irN LE=l ELSE L~~m 3213'0 ! F YFI::", 1 THEN UP= 1 ELSE IJP·-~ 329tl~ IF VA=5 THE~~ OO-l ELSEDO-~

33~~ f J~A~S(~T~IGt~) UR 5TRlS(1) OR 8TR !IG (2} }

3310 A$=- I N"'~EY$

~)'2111' U- A$;;;;;iCHR$ll3,) TIHEN E:.K=l ELSE EX=IZI 3330 RETURN

334m DATA 56~68~68~68,9b,16,124~16 335~ DAfA 15J3,5~121,lS6~136~136~112 3360 GOTO 1140

337r21 R:EN ...:: < <: <:; FIM ~)A MI8SI!:!D. »}> 33B~ COLOR 1~,6~6:SCRErN 1

339~ PLAY "05CA+.Ll~AGFEL4D+."~~04CA+.L 1l?lAGFEL4D+ ,. ,i

34(!JrlI LOCATE 7 ~,2:,PHIIN'f "BOM TRAfJALHIJOI

341 ~ UJCA rE:, 6 ~ :.s : PR' ll: N r ,i ---,-----------" 3'12eJ LOCATE 2,7:PRINT " C~pit~o J.;\rn~5 T

• Ii< i r-I~ : "

3430 LOCATE i.9:PRINT ~Agcra y~~~ deve

34i!l11Z1 LOCA II::. 11lI, 11 : 'P1..q 1 IN I "um g ru po ,aind,a Uta i 5 n wlill~rcso '"

3450 LOCATE 1, 13: F'F~ I I\IT I' a::J []s d i a bb 1 icos k 1 ingolns ,. , •. '"

3~ a'e!) LOCATE 2:~ 21: PRINT IIIAF"ERTE 'R' PARA

IRECm1E~AR "

34 T~ A!Ilo"" I I\JKEV''5: lIP A $::::. II II ·rHEN GCTO! 3470 3480 A$=CHR$(A6C,A$,AND 2~3)

~49m IF A$<>"R'" THEN G TO ~.471d

3Smm A:L.IEN-=ALI EI"+191

35Hl GLlTO 11.11l1

5

E~i~~ jOgD .; re:Q(lmCJI da.do :pm,a pe~5011S deted iUi as ida.d!es. Cllmo e () m~norprognuDiiI. do li~fD. La]\I'~" ,OiS RI;wa.tQ~~!J.I progr:amac!IJo, p,[lefiram ICOme~all" per ele,

No imcio" (10 ,olJlmput.ador perguOil:a I voc~ Be prefereo usar um a racj1i111:'~~:.8n1]de ou pcqu~t1a. E:r!tlo. 0 jo,sp OOMel:llL:. Odbj:l!lti1010' ~e~imilfll,3ir todcs os b,~oeos oo:h)r~d(ls. all.ing:ind'[Dzos com UJm.iI. bo]t'I. ParlEli, m,oVlimelllar a raquete" voce usa ojoyst,ick OU IlS tecla. s d~ !:OIiIII1101e do cursor. 0 ~n1.ponlft~ I.e ~ prt:ver a traj,eI6r:i3J dlil bolae m.orv~melltar a lFiilquele de '"anna 3. impediir

que a borna oJjllilja a b\8SC dllJ tJl;l!!.. .

Se: \loc&: pero~r uma bo,la" 0 compulador U'ne r(l~f!eoera m.ajs t:res antes de 0 jogo acaba ., No final, g computadg'r m.ostn 0 mlmero de' 'b~ocos qlU:c' vo~e «lililieg;IiI~U dest ruk.

1~~0 REM «« SUPE~ BREAKOUT - BOOTSY > >;,..:)

UH ~ SICHEEN 1 ~ 0 ~,~ ~ COLOR i 5 "I~ ~ ~: CLS 1~2~1 KEY OFF

U131~ ON SF'R r rs GOSUe 149'1l,) c SlPilrU TE ON l1Zl4~ CLB ~ LOCATE ~,,10 = PR1,I\lT ~'Raqu,,~t.e P,eq ~L,all"l a ,gilA ~ rand~1 7 II ;: :, 1 $"" I NPUT1f ( 1 )

:1ra5~ SZE;lIll!: [iF I $=""g II OR 1'$='"6"1 THEN S:Z;:::::2 l~b~ SCREEN ~Sl=CLS

1070 LM~~4ID-(16 AND SZ=3J:X~12B-(8 AND 8Z)m)

1080 RESTORE~SC~~:Lm=5~~DSUB 1630 lW91rll GDSUlIl 1200

lU!10 CT~0

!11~ E;~1~1~1

112~ C=INT(RND(-TIME)12)

1l311l) C-C+[NT (RND (--r IM~). $311i!J) +16 1140 13.0""5:; ,AI)""- B

115:t!] [; []S l:IE: 127'01

i 160 GOSU B 1 J,51Zl1

l171Z1 IF CT::;:;:280 THEN 80TO 1&')9fll 118m GOTIO 115~

::U_9~ REl"l <: < ({{ TELA >})}) 1211l1t!1 LOCAn~: gi' ~ Illi

12lm FOR N=216 TO 248 STEP 8 1220 PRINT STR[NG~(28~CHR$(N)' 12311llF'R I. NIT STRIiNIG'$ (28 ~ CHR$ (N) ) 124m NEXT N

12510 'RETURN

1260 REM «« MOVIMENT~ DA RAQUETE »» :.. 127:1tJ ST"",ST I Ck ( 0)1 .[]~ ar r CK ( 1) OrR. aT I CK (.:;;: ,

~ 1280 TG=ST:R :U3 ( 0) OR 8Tf.! Hj I( 1) OR STR I G, ( :2 )

129m I$~IN'K'EY$

1301iJ ,I IF' ST~7 AND x >4 THE~\I X:X-4 1310 IF ST~3 AND X<LM THEN X=X+4 132m PUT SPRITE ~~(M~188~~15~~ 1331Z1 RE"rUR:N

68 Uvm de jogos8m MSX

134ID REM «<~ MQVIMENTD DA ~OLA »}) 1~5m Al=C:: Il'l"',[l

136m Al=Al~AO~Bl=El+BD

1~70 IF Al(16 THEN Al~16=AD=-AD:PLAY "t 255.::16"

138m IF Al>24W THEN Al~240:AD=-AD:PLAY ~I ., 55e 1.6 "'

1~9~ iF Bl<~ THEN Bl=l

14~~ IF 91>19~ TH~N SOTD 152m 141m CP=&HIB~~+(INT(B/8)*32+C/81 142~ CH=VPEEK(CP)

1.'130 l[ F CH( }32 THENVPOKE ICP 32: BEEP ,: Be =SC~10:BD=-BD~CT=CT+l

144,0J r F B 1 ='0 THENE! 0 ... Pi BS ,( BO J = PLAY ~ II t.2 515.: 16"

145~ C~C+AD=B~B+BD

146,0 i[F (2412)-8) I iI.;'l<BD THIEII'I BDt:;JEjJi)-l 147m PUT SPRITE 1~(G~B),15~1

148(ZJ, RETur"{N

149~ B~~P;BD=-AeS(BD) 15il1ijJ GOTO 1451211

1510 REM <~« PERDE VIDA »»

• '5211l] PUW "t2S5116edc"

153,1ZI L 1>=lLI~.1 :]F LI)1t) THIEN RETURN a i i a 1540 REM {«< I 1M DO JOGO »»

155~ Oi S~PUT SPRITE 0,(255~208)~0~0 1560 LOCATE 10.7:PRINT ~PARABENS"

l~7~ lOCATE -4,,11: PIRINT 1!Vcc.~' fe;"i!:"; Be; .ip ONT[]S'II

1~80 LOCATE 5~17;PRINT "Quer jcgar d~ n eVo 7~;:I$=INPUr$(1)

1590 IF I f,iii -s Ii OR I$=="s'T THENI R,c.TURN 1121 4'~

1600 IF :1:'*0,11'1"4" AN'DI ${) "11"11 II THIEN 1580 161~ SCREEN 0:END

1.62E!1 REI"I .:: < < <: DEF I N I '. PIC DOD SF"R'I TES »>

163~ BOSUB 17~m:SPRITE$(0)=SP.:GOSUa 17 00:SPRITE$(1)=SP$

1640 FOR N~172a 10 1~B4 SlEP ~4~RLSTORE

18ID0:FOR M=W TO 7

16 SfiJ 'READ H,f, ,: VPOk'E I'>H"M" VAL { !~ Ml"+H'I> ) 166,(l]I NEili:T M ~ N

167~ FOR N=&H2W1B TO 'H201F

t.!:l,80 READ Ir-!$ ,:: VPDKE 1\1 ~ VAL ( ":t: In" +HlI; ) 169m NEXT N~RETURN

l7~~ SP$:;;. il IL : FOR N·;::::;l TO 32: READ 1-1$: S:P$;;;;:S f'$+CHR$ ( VAl. ( 'I &Ji I~ +H$ ) ) : NEX Tl\l' : RETURhl 17l~ REM {«( ORDOS »»

172~ DATA ft~ff,ff,~~0~a~0~0

1730 DATA W~~~~~ID~~JW~~~~

114~ DATA ff~ff~ff~0,S~~~0~0

115~ DATA 0~~~~~~,0~0~0,0

176e DATA f0,f0~f~,f0~W~m~0~m

1770 DATA ~,~~m,0~m,0~0~~

118~ DATA 0~m~0~~~~~~,0~m

1790 DATA~.~,0,0~0~e~~~~

lSmm DATA ~,/f,7f~7+~7f~7f,7f~7f 181~ DATA 80,90.~~~2~~4~

6

If!m~e um j,ogo pa15sado' !~m u m labill'i nm:o uidimensio~al Wei qual '\i'Q~a tern 'llima. vista em p~r""p~(:l~~,,!jj dOC8.P<'!\."e ~ sua vo'ita. ,0 nbj:I!:L~vo c em::Ol.'allnlf FoIptdamcme .;1 saida. Se .ool'lseguJr 0 se:uJ jj[Jj[Jento. ,ellcap • .t dOl i:O'UlCQ q~!~ ~ilb]Llil ,[I, I;Elb~nmuo. Se IUI!$O. elt: pcs,arilJ voce!

A .fip~a, qUll!a~re~e naJ t~la mos~ra apc~as 1lIima p3Jl1e do lalbiLrmto, UmllII. SCUI, ~1:1.dka l3i dir~.~)~1lJ1'\a a q~fI~ vracl1: ,eSla lI'ohaa;o Il.Q n1J@ililUe~b,). Ptlifo1l mudar de di~io. use Ell! ~ec]!iilis; de COl1:tfoJe do c:u~sC!r d a di[e'J~a c da esqueJ1da. A t;eda aeC'imaf .. u; voce dar urn p~~o ,iI, rre!'H~ eadavez que' Ie o1Iipenad a, A ~CC~1lIi de b3JiXjI} Fax 'Ym:f ~ecllar urn, Pi.uso.seiM m~,da[ de dir~. Os moviment,cs la.bern podem ser oo~!'troilladQ5 atraves de !:I'mi. joy:;:tiek.

De,po~S que \!''Oce OOftsegu~ chegar ao Rnal do labirilllt!o" 0 liMite de Itempo e redurldo Ie 0 jogo oome.,a de novo.

o jO,go utillza lima, ~leClil.~~~ sofis1icadaJ" baseoo.a ~WI IXInlteiros d,(ll cofC3 do MSX" ,pall ,eoilseguir urna Mudanyal ra.pfda das image:os,. Vide a peBlII eJlLudSf ,e5t-:a ieCD~tla QOIm ateD~io. pais voce poder:a, ui'~,la pam, OODs~!u.irr ,ei'eitos, deana veloc]diade em. ,seU5 ,p:rliprios pro~as; ..

1600 REM «« LABIRIN 0 - BOOTSV »>} 10.10 R,IEM

102m SCREEN l'J0~CLEAR 5mm,&H~ A l1Z1130 DEFUSIR""&1I-IEFIilIIilI, ,: KEY OFF;: WIDTH 32 104~ ON INTERVAL~5m GOSUB 123m

105illl DIM 9$(11)' ~C$(13), WI%I(18~2~1) :-IM'X.(9 9)~MT%(9J9'~TTX=40~

l'06m LOCATE 13 ~ 11 :F"RIINT ,i'ESPERE" : GOSU8 204'1il

Im70 GOSue 176~:GDSUB 118m;I~TERVAL ON 11tJ:ElI~ saSUB 1430

H!J90 ]$=U4KEY$ = FOR: 17~,,"11ZI '10 2

.11mm IP~~STICK(IZ)=mF IPX THEN 1%~2 1110 NEXT J%~IF IPx~m THEN IG9m

1121121 r iF lIP·X:.:l AND M% ( XX ~ Y% ) =2 THEN BClTO

1320

113m IF !P%=l AN~ VX<9 THEN IF MX(X~,y% +1»~ THEN V%=¥%+l:GOSUB I1GW

1140 IF IPZ=5 AND YX)W THEN IF "X(X~,VX -1)0 TH=N YX~Y~-1=G08UB 1190

1150 IF IPX=3 THEN SPZ=(SP~+l' AND 3:80 SUB 118m:: G08UEI 15H~1

I1b~ IF IP1=7 THEN SPX=(SPZ-l) AND 3:8D SUB 1180:GOSUe 161~

117m 6ElTD UilJ,8,0

1180 IF IPZ=3 OR IPX=7 THEN 1210

11'9'0 >:st:."";'::S%+ le:s AND (IP~=l AND SPX=l OR 11!Pi!.=:5 ANID' SPZ;3)) - (3; AN]) ~ I P7.=~ ,AND 8P '%'''''1 OR IP'%=,l AND ~P7..=3)"

1200 VS~~YSX+(3 AND (]PX~l AND SPX~2 OR

JP~=5 AND SPZ~0»-(3 AND (IPX~5 AND SP 7:,,""2 OR IPX~1 AND sP'%"",m) J

L2~~ PUT SPRI E 0~(XSX~V8X)~4~SP%;RETUR oN

1220 REM ~<{< RELDGID »»

123~ TMX~T~X+l:LDCATE 23,22~PRINT USING

"#"'# II ;: TM"~

12~~ IF TMZ<TTZ THEN RETUR~ 12~~ REM «« FIM DO JOSO »» 1261Z1 1 NTERVAiL [IFF

127~ CLS~LOCATE 9~11

128E1) PRI~'l.I'f "TA'ROE DEi',1AIS! III

129QJ LOCATE. 6, 13: PR :I: NT '~D LOU:CD FE.GOU V OICE!iIl

t 31.iUJ FilE TURN 138 ~

1310 REM «« SAIDA »»

132C CLS:INTERVAL OFF~COLOR 15

133~ LOCATE 11 ~ 11 = PAl r..rr IIIMU::I:TO BEM ~ II :PR Hn

134~ PRJ NT ~r CONS,E:l3l,u]U :8AIR DO L,AIU:IFHN

TO! ,i

135,1ZI, U:lCi'lTE 5.~ i 5

136111 PR' ] NT II VOCE' L EVOU j' ; T'M'~ ; ~ -s E: a U I\lI:lJOS Ii i 1370 ] F TM·j:;,< r rx THEN TTl.,=lrMl"

1380 PUT SPRIl'E m, (128, 2~,a),.4:i I1lI

13'91~ LrOCA rs :3 " 2 till ; PA I NT n QUER jOGIAR DIi=': N []\.,ICI ( 81 N ) ? III

14mm ~$::::! [NPUT$( 1 ) = :I: FA'$"" ~ I S Ii I DR A$glils n ii 'HEN II]OT(I 1 ~7'f2I

14li.0 lI.F A$="N'! OR A$"",l!ilil~i THEN SCREEN Ii!):

COLOR lS,4,4:STOP ELSE 139m

1420 REM «« GERAR PERSPECT]YA )}}) 1~31l3 FOR WX~2. TO ~I STEP-l ::'VY.~Y%+3'-\i.\lI~ ~440 IF UX~lm THEN BDSUB 169m=KZ=WX;WX= ~

1450 IF V%(10 THEN IF M~CK~~VXJ~0 THEN GOSUB 1690:KX~WX=wx=m

l.ll1,61Z1 N!E)CV' ~!.JI%: 0%=0: IF 1i'1'X: fX:% , ¥,%.+2-K~) =2 T HEN OX~l~W~~K~:GDSUB 1690

1470 IF X%=9 THEN FDR ~Z=3 TO l+KX STEP -1 = [Jc'X.;::;lm = GD81JE 710.: NIEXr Dil. =~[3'[lT:015,1fl)1 14911l l"rt.-U1 ;.FUIR 01:.-3 TO l+K'. 51'E.P~1 ;:OC~'~ ~I

1490 1 "X(X~+1~Y%+VX})0 THEN OCX~l 15~m 60SUB 17 !It!l :' 'V~;;oV'Y."H : NEX', D7.

1510 IF X%;;o~ THEN OR 0%=6 TO 4+~% STEP

-1:0CZ=0:GOSUB 1110:NEXT DX~GDTC 1540 152m VX~~=FOR D%=6 TO 4+KX STEP -1:DCX~ ~~IF M%(X%-l~Vx+v~)~m THEN DCX=l

1530 aOSUB 1710:V2~V%ll=NEKT DX

1540 RETURN

1'550 REIM «« VIRAR A DIREITA »» IS6S FOR I%=~ TO 9~FOR JX=0 TO 9 1570 MTX(JX~IX)~M%(IX,9-J%)

15B~ INIEX" J%~Jlt:.

1590 SI"oU:liP X% ~ Vi:.: XX=9-X'Y.: e,oTOI 165'IZI 16~0 REM «« VIRAR A ESOUERDA )}}) 161~ FOR 1%=0 TO 9~FDR JZ~0 TO 9 1620 MT~(J~~9 1%)=M1(1%,J~)

163'0 NEXT J%,~ D:'

1640 SWAP XX YX=YZ=9-V~

.1651[;1) FOR I ~;;o1Zl1 ro '9:: i OR J %=0 TO '9 1660 M%(JX~lZ)=MT%CJX~I%)

1670 NEXT JX~IZ:RETURN

169'0 REMI -( cc < DESENHA,R "'AiRE E »»» >- 169'0 A"'US,,, ( VAIR:PTR ( ux ( 112) ~, WYo. O,-,} ) ) :' RETURN 171Zl,0 R'EM < «< .DES.ENHA:R PO:RTA ;:..»)

1710 C1 %;;;;;:~ ; IC 2 'f."" 1 :2'8- ( ...... 2 AN,]) (D~~2 OR OX"" 5 ))

1720 I%=82m4+D%~J~~e210~D%

1730 I F ocx THEN VPOKI:- 11." C1.% ~ YPOKE J'l., C2X ELSE Cl%=144;C2X=ClX:OC%~1~60TO 173 ~J

17412' RETURN

1750 R M «« TELA »>~

1 761lJ 'RESTORE 25H?i:: 1J'{;;"'l1l) 'e SP7.;= 1 ~ TMI'l.=IZI: XS%= 113,: VS7-,=156

1770 FOR IX=IZI TO 9:FnR JZ~m TO q 178~ READ M%(IX,JJ)

179,0 N'E XT J x, rx = X':i(.=:~ ~ v"x':=m 1800 COLOR m~~~~=CLS

181~ RESTORE ~620

182~ SOSUB Zm10:FOR Iz~m TO 11 1930 LOCATE ~~l%=FDR J~=l TO 16 1840 KX=ASC(MIDStS$(lX),JZ,1)) 1850 PRINT CS(K%);;NEXT JX~IZ 186m GOSUB 2ID1a:FOR [%=0 TO 11

lB70 LOCATE 16~]X~FOR JX~16 TO 1 STEP - 1

16a0 KZ=ASC(MID$(S$(IX)~JX~l)J 199~ PRl~T C$'KZ);~NEXT J~~I~

19~0 GOSUB 201W~FDR IX~ll TO 0 STEP -1 191~ LOCATE 1,23-IZ:FOR JX=1 TO 16 1920 K %=ASC ( M I D$ ( gl'j; ( l':i!:) ~ J % ~ 1. ), ),

193~ PRINT C$(K%)~~NEXT ~X~IX

1940 GOSUB 201'1a:, FOR 1 ';r.;=11 TO I~ ~BTEf'-l 195~ LOCATE 16~23-1%:FOR JX=16 TO 1 STE P -1

196m K%=ASC(~ID$(S$(I%)~J%~l» 197~' PR I NiT C$ (K~~' ; :NEXT J% ~ [i.,

l"1sq LOCATE '5) ~ 21= COLOR :is :p~nn ~~L:[Mj[TE " TAlE ( :23 ) ,j lEMPO j~

199~ PRl~T·TAB(6J;TTX

2000 RETURN

201~ FOR IZ=l TO 13;AEAD K%~C$(IZ)~CHRS ( K%) = NEXT ::I: X

202~ RETURN

203~ REM «« DEFJNIR FORMA8 »» 204112) FOR 17.-=93.2 TO 1984 STEIP l:i,4 2~5m FOR J%=0 TO 7

2~60 KZ~25b-2A(7-a~'~LX=2A(JZ+l)-1 2~71Z1 MI7~~2""" ( ~hJh ) -1 : NIy",C!256-2"'JZ.

2LD8'~ VPOKE I 'X,,+J% " 255 :: VPn:lKE: I 7:,,4J 7.;·~-8 , I('Zo 2~90 ~POKE JX+J~~16~LX;YPOKE I%+JX~24~M Yo

2U~10 VPID~(IE n:'+J %+3,2 ~ N7.. = VF'OKE 17:.+J Y.+41Z11.~ m 211m MEXT JYo:, ~ rx

2120 FOR lZ~~ TO 11:FOR JX=l TO 16 21 :-SQ]REAJ) K% ~ S$ ( ] i:.) -S'$ll[~, ) ,,",CHRfi (K~) 2.14 t'lI INEXTJ% ~ lh'

215~ FOR tX=0 TO l:FOR JX=0 TO 2~FDR KZ ""rill Til LEi

216~ ReAD Wi'~ I( KA. I JlX ~ I:tl.) ~ NEXT k:~ ~J ~ ~ 1 ':t!. 2170 FOR ][ 'i:,i;;;l11ilJ TCll 3;: S'$~ II U ;; IF n ~ J 7.""~ro 7 21 B 'II R: E AD K~,; 51$=8'$ +1: H,fil!li( Kk)1 :' NE X T J x 219m SPR],T~$ ( n:,) ~S$ = NEXT IX

2.2m~1 I 7,; ~ &HlEFmm

22.1~ R~A:I). H!! '; ill F H$D 1.11:-: '" THEN Rr~TUR~

2220 POt.:t:e: ]7:, ~ 'V AL ( "'80: h II 4-H$ )1

223~ rX~IX~l~GOTO 221m

2240 R~M {<: {<; [lADDie :>:;. > >

,22:~'~ DATA 8" 1 , 1 , 1 ~ .1 ~1 ~ :1 ~ 1" 1 ~I i ~ 1 ~ 1 ~ 1 ~ l. ~ 1 ~1

226~ DATA 9Jell!1~1!1~1~1~1~1,1~1~1,1~1 ,,1

227~ DATA 9~9~S,1~1,1,1,1~1~1,1~1,l~1~1 ~, .1

228~ DAT~ 9~9,9,8~1~1~111~1~i~1~1~1~1~1 .~ 1.

229~ DATA 5~5,5~5.10~2,2!2~2~2,2,2,2,21 '2 :2

~

23~~ DATA 5~5,5aS~11~lm,2,2~2~2~2,2~2~2 ~,2~2

2310 DATA 5~5~5~5~11,1~J10~2~2~2~2~2~2~ 2,2,2

2Z2~1 DA,lA 5, 5,,5,,5,6,6,6, 12,,3,3~313t3!3~8 3,,3-

233m D~TA 5~5~S~5~6~6,b,13~12~3~3~3~3~3 ,3~3

234~ DATA 5,5,5,5~6,6,b~7~7~4~4~4~4~4~4 ,4

23'0 DATA 5~5~5~5~6,.,6,7~7~4,4,4,4,4~4 .,,4·

230~1 DAt'A :5"5,, ~5 , .~ , 6 ~ 6,6, 7 ,7,4, o4.~ 4 ~ 4 ~,4' ~ 4· ~14·

2371Z11 DATA .:1.44 ~ 1.44 1 144 ~ 14~ , .1 ~4 :i .1 44 ~.144 ~ i 44, ~ 14~ ~ 1~4~~ 14,4 ~ 11c4 f0 ~ ~.~ 1211 t!2l, Ql ,,0 ~196

238m DATA Im2~144~144~102~144~144~96.14 4~14'~96~144~144~6~~~~~~~m,m,96

2390 DATA 112,lm2,144~102,lm2~144,96~~6 ~144~96J.6~1 •• ~6,b,m~.~6,0,96

240W DATA !44.144,144,144~144,144,144,1 44~144~144~144~144,~,0~0~0~~~0~0

241~ DATA ~~144~1~4~0,144.144~m~144~144 ~~~144~144~~~~~~~0,m.0~0

242~ DATA 0~0.144~m~0~144,m,0,i44~m~0~1 44.~.~~~~~,~~~~0

243~ REM ((« SETA »}>

244~ DATA 16~56~68~130J16~16~16~16 245~ DATA 8~4~2~25~~2~4,a,m

2460 DATA 1&j16,16~lb~13~~69~56~1& 247~ DATA 16~32,64~255164~32~lb~~ 24B0 REM «~( PROGRAM~ »»

249'~ DATA 23~23~ 5E',,23~ 56,.21 ~d ,,2,r2I~,~d~5J3~ 0~@3,~3~Eb~6~13.7e~d3~98,23~23~10jf9~c9

25ID~ HEM «« LAE:IR[NTO »» 2510 DATA l~l,l~~~L~l~l~~~l~l 252m lD.ATA 1, ~ ~ 1, :f" 1 ,~0i :Ii. ~ 1 ,,1 ~ 253m DA l A 1 ~ 1 ~ W ~I :ll. " IZI , 1 ~~ 1 ~ ~ '~ 1 ~ 1 254m DATA i!llJ,l.m,l! 1 ~ 1.m":~~:~,,l 2550 DATA l~l~l~~,m~~~~~i~l~~ 256~ DATA ~,~~1~~~1,lJl~0~1~~ 257m DATA 1!1~1~0~0~~~~~1~1~1 25B~ DATA 1.m,m~lJl~1~m,1~~~1 259m DATA 1~1~1.m~I~0~1~1~1~~ ?6m~ DATA 0~~11~1~1~0~I~m~1~2

2610 REM «« CARACTERES ~RAFICDB »» 262m DATA 245, '237 ~ 229 ~ 248,,~ 192.~ 184.~ 176.~ 1 45~144~137~136~129~128

2b3~ DATA 245~237~229,248,16a~160~:li.52~1 22,12~.114~112~~m6"104

2640 DATA 221~213~2m5~248,192.184~176~1 48~144~140,J3b~132~12B

26~0 DATA 221~213~2~5,248~16a~16m~152~1 23~12~,115,112~1m7.1~4

7'

Darma.s

A ~dfJia ~m.u i'lo ~.i'fnilples: ",(HiE! dave' .;IMlb~, 'CQIn .~spe~(I:5 d ~'I!CI'IIersa'iQ salmndo sebre 1:']8S cam IiIS SIiJII'lS pr.6pri;M; pe~ru; .. Parlilpodcr C'J>l.cctH:lIi[ U sa 100, ~ prGC~'$O CJiue I~ ajaJ l:IID1'!a easa 'I.I'~i:.li do Olnrolt'ld~) ,da Jle.;-.~ ru::lve~sari,3.

P:a;ra m(rll'~~;u~n!1.l.t uma per,;:a, basra c'u:JItrllilr ,com !lI:~Hl letr~ ]1111.'8 i I:IdJcar 3. GO!~U n~ '~~1 q~e a pet;;a .~~·~~c::ol1i[r.a. e Ilm. .• n6tm:ero par(l ll1dkar a UlJlha. En!1 ~~uilid~, a ~ljj p.a:ra. nnd(; a pil,:'.;::iI 'V.ai dtlvc ser i:f1dical!.8. dill llu::::W1il'1I ii"(lnuta.

QI:.I:al'ldio ]'lao e pOiSs~llfe1 s~t,ar sebre nen ~uma pe~!l ad\l'ers~bi,a,. uma das pll~<lS cleve ser m,o'vinlleJ1l.tcl3 para urna C<lSlIl,Iil;inha da nu:~mi.l. ·cor. Q Lli'lJI'b,Cio ~nl a pcea ,a[~~\g.c D. 'ext rCil1,l,idndic' '~Dosrm Clo Imbulei re, elase traasrorm~ e:m um,3. actna, As d;;Ji.as podem aJ~dJr p~r~ [raS ~ saQ, ]il(llinant.o'. pC~M u;l~ns. ij:m pO~;llli~ tes q ue as pl;:~aJij~o.rtJu~,~ (r!Q.i~!!' ",~rs~{l du ]u~n,. 3:tl,

OO~lralio dill. 'Vel':S:irO' m.ais Iconheeida" ,ali dam as D~O J'OdeM andu Malis d.e ~m a easa de carilla! ve2:)'.

Ngum;3i5 :PCUO<!JS IJS!UT!!!!wwt!l f~gtra. lim POI.lOO ,w.ferellilie.lE. \i"ez _die cJ!.igil'~iff! quC' >1)1 jogl'lldo.r eome uma ~a do a:d\!\~rs4dD ~m!pR 'qjlK'i ism for posiSlveL. le~l:abelecem ij~l~ a jog3;[k~'r peKa I2sa :~ ~80~~~~~ u~a:~~, ,gada. ~ormll d~ d!.:.:sI~t;'8:mcn(.o cm,.m Gutta die S,UM peca&. !Esta pecl!~dade ,ll' e}rllBiJfl:lfiM de l·iSopraS:··31 p~aJ, u\fer5~ia.

Nes[,a ¥ersjlu par'a. (II MSX~ 'I) prugtami!! 1i~1:i~L)!Ja a :a~~ita:r u:mwejogadiR liI.or:ma!i Qjlutndo hd l!Imap~a do ~dver:stlio qu-e ~a, ~1::;rt~imi!;1id: •• 0 c'Om:p1lltadoi (100til1.l]3,a mlQS~r<'Ilf q~tll, ~ a V!'tJ; dOl m:~~!1lICljD!ada:r a,~e 'ql.u:: ele c1!et;'.H~ ~~;a jog{lldilli. dc' s al~o,.

l~~~ REM «« DAMAS - 198m »» 1~1121 SGREIEIN 1, a, 0

i 1Zl2QJ C L.EAR 200m

1~30 ~r.EV DF'r

1~1II1:D FlE!5TOH'E

1~5m FOR CH=1~2 TO 199 1~6~ FDA N=m TO 7

1~7:121 REJm :B

.il ~BitI ::I: F C[H (19~ THEN B.::E! 'X[}R 255 109m VPOKE B*CH+N,B

110G11 NEXT N

i .111Zl1 NIEXT CH

112~ VPOKE IH2m16~31=UPCKE &H2m17,~1 .1. 131Z1 soro ! 3 5112J

114~ REM ---------------------------

1150 DA~A 255~255~255~255~240,143~127,3 1

1160 DATA 255~255~2~5~255~15,241,254~20 ,6

11 Jill DATA blOj, :B'll) ~ 8~' ~ 8;5" 133 , 2~~1 ~ 25151'~ 255 1,lsm DATA 1174.~ 31Z1.8 22,(:1 ~3~ ~ 241 J 15 ~1255 I' 2~5;:J 1190 DATA 255~25ti~255,255,240,128.0.0 12~~ DATA 25512SS,2S5~255~~s~1~m,.a 1210 DATA b7~B~,B5~B5,133~2~~~255,255 122~ DATA 194~28~22.~0,ljlS~2~~~25G .123tll REM

124~ DATA 0,1~9,Bl~99,118,125,255

125~ DATA 0~128~1 •• ~234j198~110~58,la7

1260 DATA m~1~9~86-9a,86~6e-12B 127~ DAT~ m~12B~144~106,7~,106J26~1 12.891 D:A,TA Illi ~ III , 15 II 1,6 ~ 32,35" :;6 " 3,6 1290 DATA 0,m~24mjB~4,196~36,3b 1300 DATA 3b,3b,35,32,16~15,0~m 1310 DATA 3,,36~196,4~8,24m~0~0 1320 DATA e,0~255~m,m~25S,0,m

133m DATA 36,3bJ36~~,,3b~3.,36,36

13Lt·!ZI REM ---------~-~-----------,.---

,1350 CLS: IBOSUBI 21218121 136m, FO,R N"" 1 TO Hilmi

137'0 Z$'( N , 1 ):; II ill

1380 Z$(N 2)=" ~ 1390' NEXT N

14,0G!) ,0 lIMC ( 8' ~ 8,) 1,~,1,lm SCISUB 17'40

1,420 GOSUB ,21212l = BOSUB 2218·121

1.4311 LJJCA,TE s, 19:,PRINT S,TRING$(14"II II) 144m LOCAT~ 5,20~PAINT STRIN8$~14," ~~

. ,14 Sal CI!JU= 1 14601 IGIOTDI 16,1i!I1ZI 147'0 I3AM""0

.14,811 FOR N=l 1''0 8 1490 FOR M=l TO a

15im'llI IF 1M,$, ( N, M )"",118'· lOR 1'1$( M, N }='ID" THEN

GANI ... ,1

15H2I NEXT t1; NEXT N

1 '52 i11IF GAM""40 TIl-lEN BC)'fO 1,6310 1 5,310 G,AIIM=IIlI'

15~I"ml FOR: N=l TO " 155m FOR 11'1""1 ro a

1560 IF M$ (IN ~IIMI)=IIAII OR IM$ (,iM" N,) _llle" THEN

II3AH:"'"1

1570 NEXT M;NEXT N

158112) IF GIi\'ttIM= IDI THEN 8DTI[I lb70 1'5~112J1 RETURN

J!.6I1Hl', BOSUE! 3550

lbUZI BIOTIC ,1611a?l1

1'-'21} REM ccc PRETPiS 'V,ENlCEMI »»

167)i7.I CLS

164HlI LOCA'rE 4 ~ 9; PRI NT "AS PRET,A'S VENeER.

165!i:1 IGOTD 169~

1660 REM «« BRANCAS YENCEM »» 16·70 CLEi

168·0 L DC ATE 4· .~ 9 ; PR .1 !NT liAS ElR ANCAS YENlCE:

,AM'"

1691121 PLAY II 1L8CD'EFSCDEFG III

17LiHiJ LOCATE 1,23: PRINT H9u.e:r j oga.r de n ovo (SlN) 7"

17 t A't- INPUT$I( 1) ': A$=CH:Ri!!> (A'SC( A$) AND 2

23

1720 IF A$~"sm THEN RUN ELSE SCREEN 0;~ TIDP

17311l) REM {.( < < TEt .. A ) »> 174~ CaLOR 1~~4~q

17S~ ~OR A=~ TD 7~VPOKE 8*214+R 255=NEX T A

1760 FOR Y~2 TO 17 STEP 4 177m FOR 1=2 TO 17 STEP 4

1780 LOCATE X~Y:PRINT CHR$(214)iCHR$(21

.4) ~ " u

1790 LOCATE X,Y+l~PRlNT CHR$(214);CHR$( 214) ~ " ••

18IZllj~. lDCAiTE X ~ V'I :2 :.'PR l NT <Ii ;'1; CHR$ ( 214) ;,

CHR$ ( 214, ),

1910 LOCATE X~V+3=PRINT" ";CHR$(214); CHR$(2141

182m C(1/2~V/2)=1=C'XI2+1!Y/2 1)=1 le3~ CCX/2~V/?+1)=0=C(X/2+1~V/2+1)=1 184m iNEXT x

185,0 NEXT V

1860 FDR X=2 TO 17

1870 LOCATE X~l:PRINT CHR$(198) 1:86~ UJC~TE :X, 18 = PRIINT CHR~( 1.98) J.99m NEXT x

1900 FOR W=2 TO 17

191~ LOCATE 1,Y=PRIN CH~$(199)

.1920 19'3iZll 19'''1;:(11) 195m 19b1ill 197~ 1980 i99i'1 2 QU!l0 2ii!Jl~ 2,1lI2~ 211tl311Z1 211Z14~ 2050 2060 2e7'~ 2080 2~'90 .2112l1l!l! 2.11.m 2120 2131Z1' 214117.1 2151Zl 2161Z1 21711!J 2'180 219m 22tali'l 221lZ11 2120 22301 2241Z11 225m 226m, 22710 22,8~ 2290 23~1ZI

UalM$ '11

LOCATE IB,V:PRINT CHRS(199) NIEXT v

LOCATE ljl:PRINT CHR$(194, LOCATE 18~1=PRINT CHRS(19S)

OCATE l~la:PRINT CHR$(196) LOCATE 18.18:PRINT CHR$(197) FIOR Y--2 TO, 16 STEP 2:

LOCATE V,0~PRINT CHR~«V/2'+96' LOCATIE 19 - V: PR I NT CHliRS ( 48+9-Y 1:2) N:EXT V

LOCA E :21,1121:: PRINT " D,ANAS U

IClC:ATIE :.;n, 1,: PRINT 1';;;;;;;;;;;;_""""""",,1" LIJCAITE 21,6: :P:R 1. N:T u D~ i I~ LOCATE 21- 9:: PFHNT "Para":" RETURN

Fd;:;:M < {( <. INIC]ALI Z,A~'j!!![J }>:» DIM 111'$(8 ,8)

DIM 1.$( liZlll2li , :2 )

RETURN

REM «« INICIO DO JOSO »» FI[JiR '11'4== 1 TDI 81

FOR' f1-1 ro '8

M$ (IN, 11'1 >""II'm'"

x '!Ii ,e N, M ') ~ II IIi!I I'

NEXT 1"1

NEXT N'

FDR N'=1 TO :9 STEP :2 M$fl .. iNl+l);;;;;;!lA"

,M!!> (2, N) ~"A"

Miti q 3 ~ N+l )=!I'A'i

M'$ (a, N) "'= "'13''''

M:$ ('7, N+l)' =1'1 B"

M$ (6 "N) ""II~"'

NEXT N

R'E,TURN

REM «« DESENHAR PE~A9 »» X=2 = V;;;;;;,?

FOR N=l TO, 8 ~F'I:J,RM;;; 1 TO 8

2:31'121 C!J=MlJ ( iN ~ I"D

2320 II=' (;$=!'0" THIEN2:S'58 23Sm lJJCA,TE 'lit ~ 'i

2341'" II!;O'SlIB 24 u,

235m X=X+2

2';S,6m, HiE x T M

2370 X'=,2· Y=V+2

23am NEXT N

23tt'11 RETURN

24'!ZU!I :R,E'M «« PE'I;A »» 2'4 lilli, U:II:A,TE x, v

242m D$;;;::;C'HR$ ( 18:2') +CHRll (1183) : D'1$:ICHR'$( 1S, 4 )"'CHR'!iJ; (, 1185)

2430 IF Ct,=uBIl THEND$=CHR$I(1~6)1 CHIil!$(l 87) I: Dl!f1=CMIR'$I( 1819' +CHR$ (1:89)

244'121 IF e$=jhc.~h THIEN O$=t:HR$ (,1,'92) +'[;HFI,$ (1 93)

:2 4, ElIZI IF cs- II D II THEN D$= CHR1Ii I~ 1. !l!'1ZI) +CHR$ ,(, i 91):Dl$=CHR$(lBB)+CHR$(189)

24l:i!1i!) IF C'$cI!10'~ THEN D$,=II II :D1'$,:=II' II'

2470 PR' [NT Os;'

248m LOCATE X,Y+l

249m PIRINT Dl'$;

251Z10 RE1L1RN

2'5'lllZl REM «« :EIN'T'RAIDA DE DADOS »;.>

2 912:11!li LOCATE 21~, .;;.; :1 1I:1F If' l A'=' 1 THIEN PR l! NT II Et RANeASil ELSE PRINT i'Pf;lIETA,S, 'i,

2530 LOCATiE, 26:~ 0,:: PRINT II Ii

254121 LOCATE 26 ~ '9; F'R I NIT UI "

25'5,1(JI LOCATE 26 ~ 6

2~6m S'[J'!3UEM 262.0

257'0 F$""N$

.2580 LOCATE 26~a :2 5'9 m IS'[H3L.H3, 2~,2~, 26,1210 9,t=N$

2610' R.ETURN

26211l'1 N'$C'""

263,0, A:$=INKEY$I: IF A'$:1i ,. T'HE'NBOTDI2630 2,b·Q,1i'1 A$""CHFl~ (A'9C (,~$ ) AND 22"::; ~

:26,~m' I F PI" <: II A II OR ,A'$> III H'" THEIN 26:3~1 ,26,6a1 f'IbAY I i'l. e e,i,! :: N$:::;;:;A$ ;: PIA 1:N T NI$!;

zs» 0 Alii =:! NKEY1$

2681Z11 :1 F ~$< II 1'Q lOR ,A$> II! 9' II THIEN 26.7m 26,90 PLAY u1.9F'u:= N$~N$+,A$ ~ P'R I I1lr A1i;: 27'21m LOC;ATE :2 ~ :2 2 :: PRJ[ NT 'ST:R 1. NISI$ ( 16 ,,3.2 ), 271~ RETURN

272~ IR:EM «« MOVIME:NTOI }})} 2731il11 GOSUB 2~5:~'

2741l!l1 I'UJI'"'81:: Ne ... s ; 1[30S'UlIB 282m 27 5~ M$ ( :81 II '5) =M$ ( F .1 .~ F )

2760 IF Sl=lA:NI[) M\lH 1 !,S >"",II~,Bql THEN 1'1$ (1 'S ) ~ II~'EI H ~ HllIFF~m

277~ IF 51""'8 AND M$ ~.8 ",8) ",,1'IAn THEN IM$ (8,

8,):.=AlICQ' : HlIUlFF-:::1ZI

2'7811i1 IRI[);;;;::8.1: N:C~S :: BOSUE :2 920 27'9'~1 MIlO I( F 1 ~,F ), = "'ltiI) ill

2B,ml[21 RICI =:F 1 : NlC=F ~, GEISUE! 26212!1 2:811il11 RETURN

:28,2:(1'1 >1""2 = Y""'2

2830 FOR N~.1 TO a 2E!14~' FOR: M"'l III '~

2~50 IF IN~ilHl[] AND M'~NC THiEN GOSUe 291'ij, 286m, X~X+2 .

2870 NIE X T M

28:8m, X=,2:: Y~''l{'iI"2

2B9'0 NE X T N

291Z1,0R'ETURN

29'10 C$""'M$ ( N ~rn

292~1 G'.o,$IJ:mt 2"'l110

:2930 RE 'fIUIRN

2~ 4 ~I f1lE.M c ,< < ,< :~'D:IN".H::F~:l'E:R > > :> > 29$1ZI F""ASC ( LEF'f$.( F'$ , 1 ) )

2960 'F=IF-,64

2970 Fl=UALCRmGHT$(F$,lJ' 2~81Z1 F llCJ~HF 1

2990 S~AsCc~eFT$(SS,l)) 3;ll2Imm 8=5-64

3'r2J.1W!'l Sl--VAL,( RIIGHT$( S$, 1) )

3Gll2ti'J 81=9-51 3~3~ PlETLlIR:NI

3il!1'11ai REM «« REICONVERTER »» 3~'5~ lFi!!I>=tCHFi$ ( NC+i'Ili,4 )

31~bm R$""R'$+cSl"R'il (9-1L1:N)

3~70 RETURN

3080 REM «« YALIDRR »» 3090 GOSUB 295m~HUFF~0 31~'~ P$",,!'B!':: Pl$:g:'I'D'"

311.0 IF PLA=2 1lHIElN 1!P$"""fl!"i; P'l$::.::"C" 312~ FOR Y""l TD 8

313~ F(]R X~l TO 8

3~40 JF HUFF~l THEN GDTD 317m

315~ IF M$(V~X)<>P$ AND M~(Y~M)()Pl$ TH EN GOl'O 317m

316Q) GOSUI:! 363~

317~ NE.XT X

31811i1 NEXT Y

319(tJ CHEC""'.1

32~m C$=M.(Fl~F)=D$=MS{81~9' 32H) I. F C$~H 1t]111 THEN RETtJfllN

3221Z1[F (C$_,"A" Ofil C$""OIC")I RND 'PL.A~l TH EN RETURN

323Ql, IF (C$,=j'B'1 OR cs- IIID") lAND 'PLA:::.:2 THil

EN RE 1 URN !Jj

3240[F D$<> "0!~ THEN R:E11IJRN

3:2 50 ] IF c $~ "A'" AND S 1'< F 1 T HENI RETURNI 326C!l1 [,F 1:$,,,,,,118" AND Sl>Fl THEiN R~ETU,RNI 3270 XD:;:S-F=YD=Sl-Fl

328~ IF 8GN(XD'~(XD)=1 AND SGN(VD)'(YD) ""1 THEN GOrD 339W

329m IF SGN(XD)*(XD)(>9GN(YD)*(VD) THEN

RETUtRN

3300 X.=M$(Fl+(VD/2)~F+(XD/2)'

3311~ 1 F (X$~HA!'I OR X$""~'C'!I) ANII) PLA=2 lIfH EN RET UR:I"I

3320 iF (Xtl,='"B"! []~ :x,tt::;;;;lliDII). AND .PLA=l TH

E1N IRE TURN

3330 IF X$="m" THEN RETURN

~340 OcFl+(YD/2'~NC~F+(XD/2J 33~'Q'J "1$ < RO" NC ),="1121'" = BOSUS 2:821l!i1 3360 GIJSUB 3051ftj

3370 Z$(COU~11~R.~Z$(COUJ2)=R$ 2.t38,rtJ eou'"'COU~-l: GOTO 340121

339m IF' HlIlJFF~l THlEiN REfUFl'N 340m CHEC~0~RETURN

341m REM <C« JOGADA »» 342Cl1 SIJSlIa 1520; HUFI- ""tll 34:Jia BO,SUB 3090

3440 IF CHE'C""1a THEN GIOTO 3471Zi'

345,0, LOCATE 2~22=:P'RINT IIMOVIM:ENTO ILEBA

III

346'rzI PU~W Ii L4GEC111 : GOTID 34212'11 34 7~ GCJ.SUB ,273112)

~4a0 l~(COU~ll=F.~Z.(CDU,2)~S.

349~ COU=COU.l~IF COUc101 TH~N COU=l 35~0 IF HUFF=~ THEN aCTO 3530

351~ Y=Sl:X=S:608UB ~630

~520 I' H 'FF~l THEN aOTO 3780 35,~,(i!l1 HUFF=~ ~ RETURN

3549 REM «« ALTERNAR JOGADD ES »» 3550 PLIA""l

356121 G06UB :342'0 3511121 19,[l8UE 1471Z1 3'580 PLA=2

359f2! B,DSUlE, 3iiF2!l1 36~0 BO'Sl...l~ .147m 3,6101 RETURN

362m REM «« COMER )) 3630 HUFF""'£i

364111 Hl$=" A" : H2$= IIIC"

365m IF PLA~2 THEN Hl$~"B~=H2$="D~

366m 1 F Y<.3 OR M$ (Y, x ) ~"A,j THEN GOTO 37 U!ll

367m IF X(3 THE~ GOTO 369m

3,68121 I.F (Mi$ (Y -1" X-I) ""1=11 $, OR 1M"" (Y-l, )(-1 ) =H?$) ,AND M$ (Y-2 ~ )(-2)1 ",,1"1.1)'" -rHEN HUFf""l 3690 IF X>6 THEN GOTD 3710

37001 IF (MIS < Y-JI,.,~ X+l ) =H.1 $ CliFf Miti('V-l" X~l)1 :;;;H:2 ) AND M$ ( Y -2 " 'X +2 ) "'" 'U1lI1i THEN HUFF:;:;;! 3710 I:F y>t:. DR Mi$l( V. X }="'S" TIHEINI GDITO 37 6,1J1

372e IF X(3 THE~ BOTO 3740

37J~ IF (M$CY+1JX-1'=H~$ OR M$(Y+l,X-l) ""H2$), AND M$ (,(,+2 ::;:,-2) =111011 THEN HUFIF~l 374'iZ IF X}6 THEN BOTO 37,611]

3750 IF (M'(Y.l~X.l)~Hl$ OR M.(Y+l~X+l) =:H2$) ,AND 11$ (V+2~ X+r2 )''='''0''" THEiN HUFF=1 37,b(!!l RETURN

:3i770 REM c -( < < COM1EIA DE NOVO :>,.,.,. 37:81m IL:O:C,A'TIE 26:0" ': PR I NT 5$

3790 F$,=S$,

3SIZIaJi LCJICA,TE 26,8:: PR I INrT ,II P'

.3B 10 l.Clli:::ATE 2,6 8

382ml B Q,SUEI 2~21Z1

3B30 S$-NS

3B4~' UJCAiE 2',22,: PRINT STAINn;$I( 1.&,32)' 385(Z11 G,OSUB 296m: II'3USUB 3,190

3B'6rl1 ] F CHE'C""iZ:l1 THEN BriTO 3'891lt11

387ml LOCATE ::2~, 22 :: fiR INT II MOV I MENTI[J I LI~GA

L'II

38:80' IP,L,AV i'U:l:8,EC,G,EC'! ::SOTIJ 3600 3819'0 BOSUB 273Q)

39mB, 2:$ ( :COU ~ 1 ) ... :F $,; Z $ ( eou ~2 ) =- S$

39'10 CIJU""'COI:J +r' 1 ; I F e I!J U:::: 1.0 J!. THEN C()U= 1 3920 Y ... Sl: )i''''''Si: GOSUEl 3630

39'301 IF HUFF=1 THEN :I3D,TO 37BIilII :.s:94,112I HUFF'=11l1I ::B,[ITO 3,5,3~

8

Xadrez

v oce prolVi!J~~~m~f!te j.1i OYl':iu fal'ar de oompu.Eadores que jngam xadrea, UIQ p!!',ogn'llna iinteUgern,e plmi j,ogar '1t:w.1ll1l:l"po:r,em. seda ,gfande demfliIDS, para, ,(;~ber oeste Uvro" de modo queplie:rerinl('l~ eriar um pmgi'il.ma ,~e ;~oS$e litwW COMO uU'Iibul,euo elet1l'6nil:o'·. 0 prograUl31 podJt! Iter usado parfll ,iJu!bs,li:tuir I1I!If! tab'LdelrQ' CQ.IUUnli. ,com a VlJl!L3Jfle'in de que U$O ~ W1~Ce85iillriQ ;lnotw- M j'OgadilliS., Os dab j.ogadom'eII ClIiI lr,<lfm ,com os lances, usando iii 110- Ul~-1iO nonn<ail d'li)' xadrez" istiO' e. leuu paea ipdic~ as ,colunas e Rumero5 pa:r:a indkn:r 3!ll, liqhitli.

0- oompllII::liido:r exlml!i na eadalanCMii pa;r;a 'I'Ierifb;;!!!r se 6 ,possh'~ denl:Jl'C> das l!'{:gra8 do >IRd!ilez. Apenas, sib), pelfmiridos: es ,liito'rlirnl.ln~o,s de PC9llS d:[;l, eer eerreta, de u:ma CBi®a ocupada para U1D(II casar Que POSSil: sell al~lilgidlli pOi e55a ~. As ~asE'omada.s 6D.ci au[omn!l.i,c.ajliW~1ii te remevidas do jo~o.

o progn!ma nail' indica X!eque nem xeQrue-mate e permit·!: .. jo&acias qUI; (h::i.."lcIU D rel e'm lII·eQlule; cabe aes j.ol"admcs t.'O·m.3if (.;uiclia:d,n fla:~a '(ivitar que ilisoac.QDt~a, 0 program.a 'IHinlbclU !laO prev,e a tcmada de' pefles en pllS· ._qznli II. QP~il:]i urc;mover pe!;:a:" de e ser U5ad~ para re~irar um peao do ulbuleir,o, se e1e for tornadO' ,(fir pa~"(Jnl ..

o p.ro&f<mla. I,;~~U WI.COtreUunelll'l'le ,ns d,ois, 'ripOiS de toque, veri'fic:.-an· do. pD'im,ciro se 0 rei e a terre 'Ostio nas Silas POSiQOBS, inicia[s e S~ mlo exisre nennuma peQa entre e~es. Hn'll'l,d~'lI!lO., 0 eornpurader .u:eitil 0 roque se UflUI des I~as jdi roi movilm~!'ltada eveltou a posiciio hwi,d ill 01.1 se 1j[I~a das casas -cnt.re I) rei e a 19H~ ~[i,,.,et em xeque. Cabe acs jiog.adores ev-i[,M urna j:Opdfl de' :Iloqlile aesses IlJtimos dOls, casas ..

00 program!!, tambim .permit~ fixslF um:a. pDSi~aD' wni.ciaJ qUillquer pa~ 'ra ~s p~~. 0 'Q lJ~ ~ U1U par,a 0 es~udo d.e probl .. emas de Kadr'l!z au variantes de aberturas e finais. AI~!TI dlsso, j[l,gQs d~ a~c lOO lances pO'dem ser salvos em fita e al1ali5i1dos jog;iid~. pDf jogada. as peDes SaO auromaucamenle Dromt,vidos a dam.as quando chC"gmn ~ ult-i!ma tlnha,

Pt.1;as l:il'lIDcas: P = peao. T = 'moue'. C - ewalo; R ; r~i. D "'" damn. a ""bls,po.

Pe~aJs pretas: 0 rnesrnc (:udi,8:o. m~b.]sando letras m~nllS'Clilas, CIIJil!lS vazias; aperte II barm de esp3;i;O.

1. Para .mud3!l' a posi~ao irid al das, pc~s: QUiuldon com pULador pergun~.ar "V'o~ quer mOI1LllIIr I) tabu~effiro?". eillre com ... S·· e indique a pesi-rio d~s 'P~C'as. da esquerda. pM,a a dire-ita e de eima par:a baix·Q'. ~~llJJ]ftdo o seguime oodilgo;'

As· braneas scm,prl:' (."t1~]l.C!cam, nil parte de baiJljil) d<li tlda.

2. Para remever uma PC9a~ Rntre tom COnF~R ca. pos:i9iio da peca, A vez 'passa para 0 ad vtrs ari'OI.

l. Prua. fazer '0 roque: E:l:ltre rom R c dt;pois cOfnE ou D .• eonforme 0 caso, 4. Para salvar uma par;!idil: 'E!1U-~ com GRAP:H.s, d.epois de apenar as t[~'(;Iw; REiCfjRD e PLAY do UillvadQ'J". lie 'Ils]iv~r usaado fita, file cstiver usando disquete, indiquea unidade de di"~co cnllt que se ell,COntra 0 seu disquete de d;ados ( :e quiser, voce tambem po de silvaI' 0 jogo no disquele

de 'program.as).. -

5. Para i!flIT~gllir uma parl:i,d,a; smre com, I(I,RAPH-Ce' d,~pOis apertea tecla PLAY diogr'al,iI'oldor . .0 e()m:p~lador carregar~ 0 pdmeiro arqll~vo que ,eUll,conn'ar nli fitilli. S~ le5tiver usal1dol disqUellC, 0 oornpnJlador carl'illg:ar.a a IlltJma panida que ro~ l:!aJlva. que estar~ ,guard ada, so ,atQ,uivo de da!:los cllMF1ado Xad'rez. DepO]S, de' oorcgsl' a p~"l~d<t. 0 cornp1!ltador enu:a :ii:llIl:omalicamC11l1~~ mill modo. de re:PC'[[!;~O (vide Hem Sle,gu.i.l1I!f!}.

(iI, Para repent' uma parrLi,da: Para entrae '1]0 .odo de re;pelicio" eiUre ,I!;onl CRAPH-J. Cada Vin qu,e·,a barra de cspilli,;ofnr apl;;lFladlai 0' eomputadnr mostran\ um.a nova jo,gad.a" a pa!llir da ~lIIicial. Para VQI,tM eemcdo 00,[ma], hilsta ,entIar' de novo cern I(I.RAPH-J.

7. Paraabandanar uma pRI"~ida= Entre com GRAPn,~A. 0 cllmputadof I,M oferecea O.POfn,lJfii,~ade' de salvara partidiil em i:lta, ou dI~s(Jju~nt antes de ~l.Ilia!f urn novo Jogo.

HH'!I0 REt"! <.-::« XAD ,El - ISSI/BODTSY/At'IDY

»»

1010 SCREEN 1~~~0~CLEAR 20g~ 1020 COLOR 15,4,4;K-Y OFF

1030 DIM C(8~R),MS(B~8l~X$(8~S).Z.(1~m~ 2)

H14ifll 'LOC,ATE 1m" illl: PR I NT II ESf-'ERE IU : 'LOCATE

a" 12: PRINT "15 5IEGUI\lD05 II 1~5~ DUSU 5740:GOSUB S19~ HJ6tn B08UB 4510

1'I;!l70 LOC,ATE 1 19: F"R) NT II VOL~ q!..ler rnon ta

108111 LOCATE ..1 2~ ~ PR [NT "d t~,~,u 1 el. r,n ( 'SI 1\1)("

1~90 A$=III"1PUT'f (1) : BEEP

i 11210 LOCAT E 1 ~ 19. PR nn 9 r flll r\lG$ ( 1 b ~" II 1 1110 LOCATE 1,2~:PRINT S~RING$(!8," ") ! 120 IF A<J;='! 'E III OR PI _"S" THEN GOSU8 J8b ~:l, CHE=~ THEN 11~0 ELSE l~b~

1130 11- A1r"",lIIn ill DR ~V$"""UN"I THEN' 1140 ELSE 107121

j14~ SnSUB 121l1~:G09UB 142~

115m' COU""l
116fa S[l!3U:Ef '3800
1170 GOll1D 1160
118m [ND 119m REM «« INICIO DO JOSO »» 1210'1.iJ IFUR IN=} TO 8

1210 FOR M=l TO B

122i'1 1"1$ (;N .'1'''1) gH0,Ql

12~0 t~(N~M,~~m~

124~ ~~EX,T M,

1250 NEXT N

126~ FOR N.l TO B

12710 M$, (2. hi )=" p!". X$ (:2, I'll )'=" p" 128,12l MI~U 7 ~ till) = oj P " : X . «7 ~ ,N ) := II p 10

12'90 NEXT N •

130i2l1 RESlTORE 6341i!11

1310 FOR N=l TO 8

13201 REPID A'll

133m ,M$ ( 8 ~, N ) =Pt$

134~1 .'( $ ( B'~ N) ~P!'!l,

135:~ [;\f,""lCHIR-t ( ABC ( fli,$, ) ~,32) :: ,{::i!S""C$ 1360 M$(1~NJ=A'f

137~ j($(1,N)=All

.;.,.80 NEJ!T N l.:.c.H?iI S'09Ufl 5bC1'0 1 401iJ1 RETURN

4 'lEN <I({{ DESENHAR PEI;AS »»

1420 X=2cY=2

143m FOR N~l TO 8 144m ~OR M~l TO 8 1'150 C'oIJ-=I"i$ (N ~ M)I

146m I IF C$= II !ZI'I THEN 1 "'9IE!1 llJ7L'!J LOCAlE X,Y

148m SlJSUB 15512]1

149m X ... X·1F2

151tlm NEXr M

iSH'! )(,-2: V-V+2

l520 NEXT NI

i 530 R'ET'U'R INI

!54~ «« PE~A »»

1550 LOCATE x,V;~X;X:K~X/2!VV=V~Y=V/2;J F C$"" Ii i< ,; ANI,n c ( )( ~ ¥ ) ""'1 THIEN D'$""II{1&: 1).1 $,"'Kl $ IEU;iE JF G$~"K" rHEN 0$""K2$;: 01$=K3'$

156~ IF C$="k" A~D C(X~Y)~1 THEN O$=K4. =::D1$:;:K5'$ ,rlSE[F CUI,cll'k H THENI)''i,:::::K6$: [11.$

~K7$ .

1570 IF C$="Q" AND C(X,V)=l THEN D$=Q$= D1 $,;;:;.05$ ,ELSE II=" C$= II a Ii T~'EN D$:~2'$:: D.! $= Q3$·

158:~ IF C$=lj,~,,, AINID. C( X ~ Y >~1 THIEN D!li=Q4~ :: D1$=[1I'5$ ELSE IF C$'"'~~q'i! THEN [iI'$=~6$:: [11$ ""[1'7$,

1'590 IF [;$::;;:;" B Iii AND C (X, y) =L 'iFHEN D'f~.B$:

Dl$""~l$ ELSE IF e$'~"'B'" THEN D$=iEi2:$~D1$"" El3,$

16'2J12J IF C$::::; ".b 1'1 ~ND C ( x ~ Y ) =1 THEN [1·$""(14$ :Dl$=mS$ ELSE IF CS~~bU THEN D$=86$=D1$ =Ei7$

lQ·l.'0 I'F G$''''''''T'~i AND IC (X, Y) ~1 THEN D$-T$= EH.$::o::T 1.$ ELSE IF I[;'$='I~T II tHEN O$""T2;$:= IH$~' T3$

1c2'~ IF [:;$_"11:."' AND 1(; (X ~ Y) ~1 THiEiND$=T4$ ~ ~n.$:;;:T5$ ELSE IF C$~~IIi:.1I THEIN! [1$-1'6$: D1$ =17'~

163 WI IF C$ == "' R'i AN,EI£: ( x '~ Y) ~.1 TI&iE ~ D$,," R$ ~ Dl $;;::Hl '$ ELSIE IF es·:;:· Ii R'i TliFllEN Dii""H2" = D 1 $~ R3$

16.40 f,1] I if' C!Ii ~.'ill r "I AND e ( x , Y) ~ 1 TH'END$::<': R:4$ :~ ~)1!fi ;;;:R' ~$ ELSIE :IF C $ ~n r II TIH'~ N 1)$',""R6'$: D 1 $; =F!7!!l

1650 IF IC$""ilp'li AND e (X ~ Y )<::;1 THEN D$:::::P$; lill.$=F'.l$ ELSE :E F 1[:$= ~~ P'III lHEN 0$""1'"'2'$:: D1 $~ F3$

16,011 IF 1[;'$"'" II I~ HAND C ( X ~I Y ) ::;; 1 THEN :D!$ ;:::;;:P.t $ ::: D~$=P~$ ELSE IIF C$::::~~ p,'iI THEN D$;;;;;P'tJ,$·:: nUi =P7$

167m IF C$,",n~~ AND C(X~V)~l THEN D$=CHR '$ (:214 ) +CHR$(:214, =[11 $; cD$ ELSE u::' 1::$ "" '!I! !al'i'

THEIND'f~ lie II! :: D1 $;;::;D$

168~1 PRINT .0$;

1 b91E!) X'''''X X = y=y¥ 17~0 LOCATE X~V~l

171~ PRHIT Dl$~ 17:20 RETUr-lN

173m REM (t« ENTRADA UE DRDDS )}}) 17qm LOCATE 21! 3 ~]F 'PLA~l THENI PRINT I!B RA~lCA8j~ EL9E IPRH.IT !lPRElf,A9 "

1 15~ l DCA, r F 26 ~ 6 ~ PFO: 1 WI " 176~ LOCATE 26~8~PR[NT " 177~ LOCATE 26~6

i.78~ GOSLIB 185m

l79!l1 F$""N$

18!lUii~ 1 F CA8= i THEN RETURN :I. B10 LUCATE 26 ~IH

182~ EifJSIJEl 1850

183m S$~"I$

184 ~ RETU.RN

t85~1 NI$,,,,,il II: CAS=0 186~ A$~]NPUT~(l)

197m IF A$~CHR$(196) THEN eDSUB 2m3~

.I. BSt!) I F A$~ III R II (]R .A$"" " r ~j THEN GIOSU8 326 ~

1B9ID IF CAS=l lHEN 'RETURN

19®t'J IF A"Ii='CHlIR$ ( 188) THEN GW=HJ~ 491~:~ ILl[) CArE 26,6

1910 IF AS=CHR5f210) THEN GOSUB 473~:LO CATE 26~6

1920 IF A~=CHRS(156) THEN GOTO 2320 !93~ A$=CHRS(ASC(A$) AND 223)

194'0 IF A$""Clf ItR$ ( 1991 AND COU> 1 THEN !$ ( C(]U, 1 ) = H IFF ,L = G,OTD 42·40

195~ IF A$.< ",A" OR A,S> "HI! VHIEN GOTH lS6~ 19601 FLIlI'Y '" LS,c III : N"::::;:{~$ :: !FIR I NT N$.:

197~ A$=IN~UT$Cl)

198~ IF A.~CHR$(8) THEN PRINT CHR$(127) ~ :GDTO 185~

19'q~ .IFA$~" 1'11' DR A$;::"119" THElflA 1'97~ .21Z100 PLAY III LaG " = Wj=N $+ ~ $ .: PR: .i NiT A't; 201~ RETURN

?02~ REM ~«< FIM DO JOGO }»>

21ll31l1 LOCATE IZI ~ 20; 'PR IINlT " Giu.e'r- S ai, 1 VOltI'"" a p~r-ti;d~ (SIN)? "

"

III

XlIdrez 83,

2'1.?l4121 SS$=)NPUT$( 1):: IF SS$="'S" OR 88$='''5 " THEN A$~CHR$(21~)=R~TURN

2~50 IF SS$="N" OR SS$="I'lI" THEN LOCATE 121 ~12fZl; PR I NT I! Qu,!;!' I'· ,J og ... r de' novo (S/N)I ';"'

II

2~6C!J RR$=INPilJT$(l)=IF RR\Il~"S" DR RR$::;"1Eo u THIEN RUN ELSE SeRE N 0: STOP

2~7m REM «« HDVIMENTO }}»

2C!181il) SClSUB 2490

2m90 CH$=M.(F!~F)

21mm M$[Sl~S)~M$(Fl,F)

211~ H F'LA""l AND - 1,""1 AM} M$(Fl"F11~"'p'" THEN M .(Fl ~F) ~llq'lll

212&:1 II=" PLA-2 At\1O Fl-8 AND M$(Fl~F)"""P"

THEN r'1$ (Fl ~ F) 0:"'((" 213'l' C$""CHil

214m RO~Sl~CR~S:GOgue 219~ 215m M'$ (F 1 ~ F j =Ihlai'

2160 RO=Fl:CR=F:G09UB 2190 2171Z1' M$(F ~F)="0"

2180 IR'ETURN

2190 X=2:Y=2

22Q1~ FOR N=l TO B 2711Z1 FOR M=i to 8

2220 I :r= 1'4 "" R 0 AND I'I=C R THEN GOSU'B 22SifZl 2230 )l;,=M+2

224,11lI :1\lEX T M

2.25m X=2:¥=¥+2

2261111 N EXT t';J'

227m RE1UI=i:1\I

228m C$~M.(Fl,F)=LOCATE X,Y=BOSUB lS~~ 229Ql RETURN

2317.11121 RETURN

2316 REM ~«< REMOVER PE~A }»> 232m LOCATE 2't:) ~ ,19 :: PR I "'~T "Pe~ ~ "

23 ':J: (lJ1 LOC~TE 21a" 2Gl: F$;o;: HIPUl"1> (1) = A,$=CHR!S ( ASC(F~) AND 223)

234,m ] F ,A${" A II. DR A$,.,'" H" THEN suro 23::;'1;lJ ELSE PRl NIT A$,

23'~m, ILtDC,I:'\TE 21 ~ :2,m = :131$=1 NPUT$ ( 1 )

2361Z11 IF Bi$( 'i' 1 I'! OR G$'.) 1i'9 I~ THENGIJ:T{]I 23~~1

ELSIE PR m NT G'$

237,1:11, 2391~ 2 J,'9m' 241~0 2~4UJI 242m 2'43~ 24~lm 24'5!'~1 24bli) 2'47,ml 2490 24'9,~ 251fZ10 2510 2~2m 2530

F$~A,$+G$

L.OCATIE:20 ~ .1'9 ::IPRINIT ," ILm:::~TIE:: 2~'~ 20::PRlENiIi n

8$E" Ai" ;' IG08UE! 249~1

Mi$ (F 1, F) ~1~10'1!

RO;Fl~CR=F;~csue 2190

Z.S ( C'lJU ~ 1) =F"IJ ,~ Z~,( cou " :2 )t ;;::;F$ ICOU=[;OU+l

1,F '[:,0 U= 1011 TI1EN COU"'l

~ F PLAIDJ]I. TIHi~IN IPil. ~~ 2: ~ G,OBUS FU:::: TU'F! N' 11&0

REf"1 <: c -( c ClDN'VIERT'E R ') ;.) :> F;:;;::,ASC {LEFTS ( F$ ~ 1) ) F-r-64 Fl=9-VAL'RIGHT.(F$~1») S~ASC(LEFT$(S$~l») S;:;;::S-t':i,4

"

IIji

365m

254~ Sl~9-VAL'RIGHT.(SS~1» :25~0 RE'iJiURN

:25~,01 F'$-'CHlH'$( F+64) +STliR$ (9-F 1) 2570 ~$=CHR'$ ( S+6~ ) +'STRii I( 9-81 ) 258m Z$(COU,1)~F$

2590 ZS(COU~2)~S$

26~0 COH ... eOiJ+ 1 ~ R'El'URN

26Ui'l1 REM ccc VALIDA'R »» 262a 60SUB249ri'l

263Gl CIHE""l

26~lm C$~M$ (IF1 ~IF) ~D$=M$"( ~1, ~n 2'~ :;, (!iJ IF .[;$::::: ," ~I'" THEN RETU:IRIN

266m lEF 'C$) II Z n :A:!ND PLA:-l tHEN RETURN 2670 'IF 1[:$< lila" AND PLA=2 'fHE~iI.I IRIETiUlRN 2~B0 lEF D$,"""m:~ THIEirIi 271.12l1

2691~ I iF 0 $;' I' Z H ANDt PL.,FiI""2 THEN RIE 1'11JI~N 27'fJaI IF :1)$ '< ii a II AND IF'L A,= 1. THEN R ETURNI

2:7 :U1J IF ,A'S'e ( C$ ) .> ABC I( "Z")I 'THEN C$=CHR$ ( IA SC (C$, ),-32)

272m IF ABC (':0$) >ASC,( IdlZ III) THEN [l,$"'CHR$, (A SIC C D$ ) -32 )1

273m IF [H&""JIIK'i THENI RETURNI 274~ IF C$E:i!! P III THEN 28 ~5m 275(lJ1 ,I F C$= Ii ,F!l !'! 1HEN ,2980 27'6~ J F C'$:"" oi T" THiENI 3010 2770 IF C$="B~ THEN 312m 27:Si!1 :IF CS=H,[;l!' THEN 317~1 279m IF :[;5=I'IK" THENI 3230 2900 It,I-i'E.=0

2S11!!l1 Ii F C'!Ii= II J(I!I OR C$= "' P I" OR [:$ .... i I Ii THIEN

RETURN

282,m so'eus 35,41fiJ 283'Iia R:EliURN

2B4~ REM «« PEAO »)}

2951Z1 IF FL.A=2 lAND, F 1 )81 THEN RETURN 2'816,GlII IF PLA=l AND 'Sl:::·IFl THEIN 'RETURN 287m DIS~SGN{Sl-Fi)*(Sl-Fl)~IF DIS=1 TH EN 293121'

2B90 IF DIS)2 THEN RETURN 289m IF S()F THEN RETURN

290m IF PLA=2 AND Fl=2 AND M$(3~F)="m" THEN 2960

29 HD I,f PLA"".i AND F 1=7 ~NICI 11$ (6" IF) ,,.,, Ii 0" Ttl:lEN 29'6,0

2'9:20 RE:TUIF'oIIN

2930 IF 8=F ,AND D$_'n'Gl1" ThiEN 2'9601

2940 IF :S'BNI( S-F) lk (S-F) =1 lAND D$<> !II!!'" TH EN 29'6fai

29'5,0 RETURN

:2 9,6Jf2I, i3 [lIT IJ 290:1

297m REM «« TORRE »» 298m IF Fl<>Sl AND F(>S THEN 2,9'91i11 GOTa2Enl}I~1

3mm3 REM «« CAVALO »»

:3~IU~ lI:F ~51~iFl·i·2 ANEI S:;:oF-l 3~,rt l'F Sl:;:;;F i 1"2 lAND s ... ~ + 1 3Q[3:QlI IF" Sl'''''Fl-2' AND S=IF-l 3'041C!1 IlF' EU=Fl-2 IA1ND' S=F+l

RETURNI

THIEN THEN THEN THIEN

311(110' 3U~1lJI1 3H1111ll1

31Zi,51Z1 31Z160 ..j01~ 308CD 30";>r.!I ,RETURN

._::, 1 VIm nu 1 U ~: f.n,i!ll1

311~ REM /~(~ 8lSPO )2>~ 317~ XD-F-S:XD=SGN(XD)tXD 313~ 1D=Fl-Sl~YD=SGN(YD)*VD

?,1.!i~17.I II Xr'l1 ..... ·i~D THE~J RE.TUF.:N

':,l::iVl GUTO 28WIZ!

3161iJ REM ,. ~.« DAMA »>::.~11S XD~r s:xn=SGN(XD)*XD

3 .U~rlJ Y o=t] C'il i Y D""SGN (VD) lIlYD :; i 9(2) 1 F X D=YD THE"'! 32,HZ!

32l!J~ If" F:I () 81 AND r( .... 8 l~ lEN RETURN

IF Sl-'='F.l+.1I. AI\lD S;:::;F-2 THEI'lI :amm
IF Sl-Fl+Jl AND 8:;;;;;F+2 THENI 3illllZl
u- Sl""Fl-l AND S=F-2 lHEiN 3Ui!l~
H- S!=Fl-l AND S=F+2 THEN 310m 3~ t 0 mHO '2800

"2:~1iI 'RE.1·1 < < c-, Fa:: I » »»»

3230 IF SGN(Fi-Sl)*(Fl-Sl)<)l AND SGN(F -8) :+: ( :F - S) .(;. 1 THEl\J RETURN

C,?4li11 (m I' 1 ~·'[IQ1IV1

32 ~,t!) RE.'11 -, " ..-: .. : ROQUE > >.~ > ~261iJ F'R TNT "e";

:>·/I~ A~ASl ( I r'~f'UT'$ I( i J ) ~ A~A A 1"<1 0 223 3281Z1 IF A,< >68 AND A< > 69 THEI\~ 3:,:nm 3~qfll A$:...CHR$(A):F'R"INIl A'S;

3300 N$"" i'[;i'"I A$.: CA6""1 ::, Frl:ETur':N

331 ~ REM (0:..: < ': 1'10\) I MENTO DE RO[lJUE » >-) >- 33';;::!Z! S$~ 'I AB" = A$=FH GHT$ ( F$ ~ 1 ) • GOSUS 2491!l1 ~ CHET:""l

"J3::e IF (P'LA=l AND A$='!.E" AND 1'1$ « e, 1.) {> HRh) OR (PLA-l AND A$~~D~ AND M$(8,S)<> n R I') ThlEI'J RETURN

33~0 1 F l f'LA"".2 tw·m A$="E" AND rl$( 1 ~ 1) <> 'i 1-", OR (PLA ... 2 AND A$;;;;;I' 0" AND 1riI$ (1 ~ B) {~ lit r-" J TI ~EN F~r: ~ URN

335(l) IF PLH=2 AI'IID f<~.~ (1,5, <>" k 'II THE1,'\! 'RET URN

o .~, l-'lill i F I"" I. A= 1 ANI D 11$ ( 8 ~ 5) ... :0" K ,! r ~ E N ~ E T URN

337~ ~U~1~EN~7:]F PLA~l lHEN LIN=8 ELSE

LU.j:!

3381121 IlFA$= '!'E ,; THEN AU~-l:: EN~,2 3391111 FDR N=5+AU TO EN STEP AU

..:>4~l?J IF 1'1$ (LIN" N)':::' "llI'" lHEIN N=:!Er'il: RETUI-m 3410 NEXT iN

3420 F'LAV "LBCDEGFI C' (j "

343~ Fl~L[N:Fm5+AU~Sl=Fl;S=EN 3440 IF AU~-l THEN S~S+l

34,51i!1 IM$ {F 1 ~ F) ,,,,liF..:'i : !'I$ (81;; S) -ilK'! 346m 1"'1$ ( F 1 ~ 5 ,) == " !Zl" : M$ ( g:1 ~ E ~ ... AU) ~ "' 0 II

7470 IF LIN=l THEN IM!ii(Fl .. F)="t"11 ::iM$(S .S )~"k"

348~' Z$ (COU ~ 1 )=-"CCH:: Z<t ~ CtJU ~:2) ,,=.IICC "' : COU~ COU-;I-l

~490 FC~ F=l TO 8

350m RO~Fl:Cl~ =GDSUB 2190 3'5Hll ,NEXT F

352W CHEC=0:RETURN

353m REM :: ~ {<. 'VERIFICAR CAI'1INHU >".;,» 3540 ND=0:MD=~ c

355~ IF Fl>Sl THEN ND= 1 3560 IF 91>Fl THEN ND=l 3S7~ IF F>S THEN MD~-1 3580 IF S)F THEN MD=, .559121 ICN"'-Fl::CM~F

36~~ tN~CN+ND=CM=CM+MD

361m IF CN=Sl AN'D CI'I=S THENI liE I UR,I'I

36,20 J[ - M$ ( C"J ,~ eM ) -<) ,i 'fd " 1 HEN CHE= 1 ~ RETUR N:

36312l IGOHl 3,6012)

364~ REM «« VEZ »» 3,650 sosue 17 4(?)1

36060 LOCATE 2~ 11 = PRnH " 3670 lOCATE 21 .• 12 :P,FHNT !I 368B IF CAS;1 THIEN GOSUB 33212) ELSE i3UBU B 262e

3bq~ I CHE-0 THEN 3730

,:~7 ~L;) LClICATE za, 11: pn! NT II 110V I I-I'E'I'-ITO"

Ii

"

3710 LOCATE 21~12;PRIN~ "~LEBAL" 372~ ar TO 3·6,s,1llI1

373m IF CA5=1 THEN 378a1 ~740 lS(CQU,l =F$

37~W Z$(COU,2)=S~

3'7!biID 'CICl'U=[; nu ... 1 ,: 1 F= CIJU= 1 ~u THEN c: CUi= 1 377m GOSUB 2091121

-,7E~,m, RETURNI

3790 REM «« JOGADA COMPLETA »» 3800 PLA=l

3fa :Uilll G(lJISUB 3650 3S21a PLA"'2

383m GOSUB ..;)i;,sm '7.8'401 RETURN

38~1tlJ REM < «< MOiNiFAR TIA'9ULEIFm»» 386m X:2~Y'::',2

3S70 FOR N=l TO 8 38B~ FOR M~lj TO 8

399m M$(N,M)="m"~X$(N~M)~"0" 3qm0 G!J5UB 4~140

39UI X=X''"2

392m, NEX T M,

3q'~'m ;0:""2:, ¥=Y· .. 2

39'4il' NIEX T N

395m IlIO'C',ATiE 2m' 1.8:= PR! NT "TUDOI'" 39b,BI LOCA E. '20 ~I 1 ~ ; PR I NT II CERTO? II

397'a UI:U::,ATE 2m" 2!Z1 = PR I NT ii' III

,;:)9B~ A!l,= I NKEV $. :: I'if' ,A $~ *1" THEIN '3'991111J

39t;0 IF A$;. II Z 1'1 T -lEN A,'1i-=CHR$ ( ASC (' IA$ ) -32) ~lmm0 IF A1l='''S'i TI-iIEN CHIE""II.Il:'LOCA,TE 2~, 113';

PRINT" "~Lm:;A,TE~: 2m, 19 :PRJINT Ii,

'II ~ 'F('ETURN

4lll1H!I 1 F A$= li'l\I III THEN 3860 4020 GDTO 398m

4,(lI3m1' REM' «« ENTRAD,A DE DADOS )-»>

404Q1 IIJICIA T,E X ~ Y ,: PR I NT 'I! 7 II ;

4050 Dm." I NKEY'$ :' l:f '1)$ = III 1'1 1 HEI'II GOl OJ!I!II~15JBlI 4Ll16'iD I:JF [I$.=::" " THEiN 0$"" Ii Illl": EHHCl 4171Z11

4E?J7m I os> U 1 ;11 THEN C$=CH'R-' (ASC (10'$) -32),

ELSE (;$=D$

4080 I!F C$<>"T" AND 1[:$<>"(;" lAND [;:$()"8"

AND C$<>"D!II AND C$(>!IIRI'! AiNID' C$(>uIP!"T,II·' EN GOlD ,4121511

41&;19111, IF DI; ... II r IIi T:HENI D!fi~ II p. II 410m IF D$~"Rri THEN Dt="K" 41U1J III=" D$=" t,'" THEN IJt=",r" 41:20 lE F 0$"'" !I'T '" THEN Dif""" R" 413~ IF D$~"d" THEN D$~Pq" 414,121 IFU$""'~D'I tHEN 0$='11]11 4,lSm I F Dtl,= n e II THIEN Dt,='~' til 41b'ia IF D'!I>:UC"" THEN :O$!:,,:hT I" ,4170 PL,AY II LaC i. :: M!i,,( N "H)=D$ ,41,80 Xif'( N ~M )~D!I>

4190 C$=D$

,420,1121 LOCATE: X " Y 42,Ug GDSUS 15151D 4220 RETURN

423m REM «« REPETIR »»

424,0 PLAY !I L~8ICIE'GCEG, ',i ": COU=11l\!I ; 'PLA ... 1 "2:;)0 FOR N=l TO 9 ~ 'F'OP! M:.l TO a 4,26'1, 'Mi'Sll (NI, M) ~X$ (N" M)

4,270 NEXT 1M; NE KI NI

42821 GOSUB 451:&!j ~ GHJ,SUB 1421i1J' 429": C,DU='COU 1

43011211 I FZ$I( COU, 1 )1 ,,,,,IliFF q, THEN ;4,4'81a 431m F$=Z$(COU,1);5$uZ$(COU82, 43,210 GOSU9 249m,: sosus 2 l1M'3,1Zj1

4330 COU=COU+,l

4340 .IF' l$ (cou, 1) ='iiCC" THEN: 4290 43~5,1ZI1 A$=INKEY:ii

4,36'~1 :IF A$",,1I11 THEN, 4350 43711iJ IPLFl,=2::PLf:li¥ 'il.ISDE"

43!Bfil I'F A$ .. CHR$'( 1ge) TI-IIEN 448'0 439~ IF Z$(COU11);"FF" THEN 44sm 44m0 F.=Z$(COUJ1'~S$~~$~CQU~2) 44· OJ 11i30Sl.n~, 24,Q'1i') ~GOSUB 21i!1:8:1i!lI1

44.210 I iF :Z $ ( eOlJ+ 1 " 1 ) === " cc Ii THEN C[JU"",C'Q U +2 ;GOTO 4390

,4,438 A$= I INK'EY$

l,I-44111 IF A!I!::;"'" THEN 4431a "1' ii, 5,'21 PLA=.1:: PLAY III L8D1E::"

446m IF AS=CHR$(198) THEN 4480 447,[21 GOTILl 429~

4q8~ IF PLA~l THEN 1160 4lJ191Z11 GOSU:B :;,6~0: GOTD 1160 4500 REM «~( TELA »}} 451m COLOR 15~4.4

4520 FOR ¥=2 TO 16 STEP 2

45312l LOCATE 1, Y ,= PR INT CHR$ (22m) :; B,D$.; CHR !fi(:22~)

454~ LUCATE 1 V+i:PR]NT CH~$(22m);BD$;C HR$( 221~)

45sm E'lD'$""R I GHT$· , ~D$ • 14 } +LEF'T$ { (!D$ ~ :2) 456121 NE T V

4571Z1 LOCATE 1. 1.:: P'R'llNT Cil'-IR$ (21'5) ; STR INGI$ (16~CHR$C219»;CHRS(216)

45B~ LOCATE l~lB; 'RINT CHR$(217);STRING $(16,CHRS(219);CHR$(219)

459~ rOR V=2 TO 16 STEP 2

460~ l.OCATE "y. ~ ~: PR I NT CHRt. ( (Y /,'2." +'96)1 461m LOCATE 19,V:PRINT CHR$(46+9-Y/2) 462[;!J NEXT Y

463{l1 LOCATE 21. ~ m :PFHNT II XIADH'IEZ I' 4641jlJ LOCATE 21, 1 ; PR J NT n ="::t:::~~= III 4b5~ l_[]DATE 21,.6: PR:I tIn "Oe ; II 4660 LOCATE 21..,S:PR'IN1r IIPara:: "

4b7~ FOR X~l TO 7 STEP 2~FDR Y~l fa 7 S TEP 2

4680 C ( x , y ) "" 1 :: C ,( X -1-1 , Y ) =,Iil 469~ C'X~V+l)=0:C(X+1,Y+l)~1 470'121 NEXT V ~ X

4 71 ~ 'RETIURN

~720 REM «« SALYAR »»

4730 ,Z$(COUj.l) ="FFI' :G·$",,!I'i :H$=" ": 1$=IO·!

4740 LOCATE m~20:p~IN' II ESPERE 7 M

IMUTDS !II

475~ FOR N=l TO 8:FDR M~l TO 8 4760 G$=G$+M$(N,M)~XS(N~M'

477~ ~!::.ilT r-\t~ N

478~ FOR N=l TO Im~

4790 H$~H$~Z$(N~1)~I$=1$+Z'lN~2) 4i8011lJ NIE:X TM

4810 H$=H$+STR'(CDU):BEEP

482~ LOCATE 2~20=PRINT "CASBErE ~U D150 UlElE (C/D),?

!Jf:83Q1 ssm'''''.1 NF'IUT$ I( 1) : ] F 88$:;:~' C!! tOR '95$::=!' c:; Ii' THENI 4,8400 ELSE 485,1ilI

il:8.1,fij!) tOP'IEJ.J II' CAS: x ADRE Z !, F QR IDUTP LIT AS 1! GOTO 4880

4B5~ LOCATE 2 ~ 2'1ilJ : 'IPR I NT ,,1 DR 1 v.c: A OU DR!!oJ E B (AIEl)?'''

4860 DD$=] NPUT't (.1) ,: IF DD$.;::::l" A"~ DR DD$~lIa " T'HEIrJ (]PEN~iA: XADFo!EZ '" FOR OUTPUT AS 1 ~

487~ I F om''''' 'Ii' E Ii OR DO$- "'10" THEN :OPEN ".£ I:: X ADR.E.Z '"~ FOR OUTPUT AS 1 IEU3E GOrOQ,s2lill 4Ba~ PAINT.l~G$=PRINTM1~H$:PRINTHl~1$ 4890 CLOSE~BEEP:BEEP:LOCATE 0~20=PR]NT SPACE$(3~)~RETURN

4900 REM «« CARRE GAR »»

491100 LOC,ATE a, 2.mt~ PR]NT Ii' CASSET'E ell Dl

~H]UIE:TE t( CI D)? Ii

4920 58$""" I N'PLnlfl( 1 ) : ]:F S8$:::.: ,. C II :OR :58$..:" c II THE~ 4930 EL'3E 494!l'l

,4930 OPEN ~'CAS; !l!ADREZ" FOR INPUT AS 1:: 6 urn 4970

494·17.1 LO'CATE2, 2121 : PR] II\IT 'i, DR [YE t-I ou DR 1 V IE ~ H\/B)?"

49SID DD$~INPUT$(l)~IF DD$="A" DR DD.~"~ " THEN OPEN "Ai; X AORI!: Z " F [] Pi: t NPUT A'S 1 = G,oTD 4910

496~ IF DD.=~B~ DR DD$="b" THEN OPEN "S = XADr~E 7_ ill For, 1 NPU' lAS 1 ELSE GOTfl Jlj.94f.:J 4970 IF EOF (1) THEN LOCATE :2 ~ 2rl1: PR:IJ~T .i

NAn HA NENHUM JOGO SAL'V[l "= CLOSE: F,cI:R

KK~l TO 200~NEXT KK:LOCATE 2~2~:PR[NT 9 PACE. $ ( 21 ) : RETlJr~N

41980 (3$=,iII'U ,= hit,=- II II ; I .... I~ II' ,4990 t.r NE INPUTH.l. ,S$ 501D01 'LINE INPUT*l,Hs 50!m LiNE iNPUT*1~1$ 51312 ~ IC' IOSIE

:5,O,30 LOCATE 2!, 21i!1 :: PR l. NIT ,n e::Sf'ERE '7 tU

NUTI[JS II

S&lI41Z1 F OIR N= 1 TO e =: FO'l='( IM= 1 TO 8

5'fD'5'(i) IM$ ( IN JJ 1M) =II..ErFTS ( GS" J!. ), :' x'. (IN, H,) =MII D,S (16 $,2".1"

51iRl6;1 G:$=,AIGHT$I( GS"LIEN (1$) -2"

5107121 N~KT M ," N

5110901 F,I:l'R :N=1 TO 1Ii~1llI

5090 Z f;!, I( N, .1 ) "'LEf'T$ { 11-1'$ , :;0 SUnil H$DIR I GHT'$ (Hr$ , L.,EN I( H$ ) -2 ~ ~~1~ Z$(N,2)=LEFT$tl$~2) 5!2m !$=RIGHT$(I$,LEN(!$)-2) 513(ili1 NEXT INI

5140 COU=VAl.(Ii-!$) ::H 5'1211 A!I:=ICIHF'($' 19'9:)

5 i ~0 L (]ICFfll" E 1: :, 20;: f'A I NT SPACE"; :( 3m ), 5170 RETURN

51BIllI REII1 «« INICIAII...J ZA,r;AO »» 519B K$-CHR$ (11)2) +CHR$( 1.9S)1

521iH,l3 1< 1 $ ""ICH R $ ( 19':2' ) "'CI!-IR$ ( 19';3, )

521 fill 1<2$= CHR$ ,( 150 )+'ICHR:!I;I ( 1. 5i.1l ) 522,0, K3$[!;lCHR $ ( ,16(1) "'CHR$ ,( .16.1 )

52301 K4s",CHRS:( 16" ) +CHR$ ( 16,7 )

5,2·411 K5$,="CHR$ (17,6) +CHR$,( 177) S25QJ, Ko$=CHR'f (1.9a)~CIHR$ (199 ~

'5,26121 K7S=CHlRs,( 2mB )+t:H.R'$, c 2'1219" 5'27m Q'$-CIHfi!$ ( 1:134) +>CHR$ ( 1 a ~ 'JI

5290 GIl $11:1 C HR$ I( 192 ) '+CHR $ ( 1. 93; )

52911ia Q2S.:;;!CHR'tl (15:2) +CHR$ ( 1 S3), 531:1UJ Q:3$-CHR$, I( 160 )I.CHR$ ( 1,6,.1 ) 5310 S4$=i:HR$ (f,l,:8) +CHIRS,( 169') :;I32m' 1]151$ "" CHR$ ( 1.16 ')1 +CH~$ t 177 ) 5330 Q6,$=t:HR$ (2112]0) "'CHR$I( 21llil)

534121 IQ<7$=IG'HRS (2ma,) +CHR'$ (.2:m9)

5350 B$~CHR$(186)+CHR$(la7) ~3,60'~H 1i=CHR'$ ( 192 ) +iC,HR'$ ( 1. 93 )1 ~37'!ZI 82$ :::;CHR '$ ( 1 '5 4 ) +CHRI'. ( 15 e ~ 5380 B3$~CHR$(lb0)+CHR$(161) 5390 ~4$=CHR$t170'+CHR.(171) 5400 B5$=CHR$(176}+CHR$(177) 5410 B6~~CHR~(202J+CHR$(203) 542:0 B7'!l!=CHR$ (210'8) +CHR:$ ,( 2mq } 543~1 l'$=CHR$ ( ,1 9'fia' ) -I- CHR$ ( .1.,9'9 ) 514~lm Tl$..:ChlR'$( 192 )+CHR!fi( 1,93) 545'0 T2$=CHR$, ( 15,6) +,cH!R$I( 157 ), 54,b0 T3$;:;:ICH'IR$ ( 16,01) CHR$ (' 161 ) 5,471IT,4$"""CHR$ (i 72)' +CHR'$,( 17'3) 5,4G11Z1 l5$=CHR$ ( 1'76 ) + CHR$ ( 177 ) 5490 T6$~CHR$, ( 204 ) ;l"CHR$ ( 22115) 5~0m l7$i ... CHRS (2:0,18) +CHR$, (,209) 5510 R$=CHR$(190)+CHR$(191) 55,2m Rl$;;;;;CHR$ (1'9'2) H:HR$I( 193) 5"5j,3,QlI R2$"'CHR$ ( 1.5'8') +CHR$, ( 159 ) '554~ "'R3:$=CH,R$,,( 161Z1 ), 'l'"ClHRS ( 16,1 )1 5550 R4$=CHR$(174)+CHR$(175) '5,'561121 IRS$=IC'lf-Hil'$ ( 176) -li-CHR$ t 177) 5'5 7'~ R6$,""'CHR!I!l ( 2m'Q ,,+:DHR:$, ( 207 ) 559121 R7'.lP=CHR'$ ( zea ) +ChlR$ ( 211l!19 ) 5590 P$';;;;;IC'HR$ ( 19'4) 'II-CHR$ ( 1'7'5) 56,m,m, P 1 $,;;;;; CHR$ ( 19,6 ) +.c HR'$ « ! 97 ) 5~,U!l P2$""CHRIIi ( 162 ) +CHR!Il ( 163) :56.:2,(!I' IP3$=CHR:TlI( 1.64 )1 +CIHR$ ( 165 )1 56J0 P4$=CHR$(178)+CHRSi179) ~,6 'lfZl IP S$caHR:$, ( 180 ), +CHR'$ C 1 e 1) 5,bS'il11 ,P'6.$=ChlR$ (210, +eHR$I( 211 ) 5~&0 P7$=CHR$(212)+CHR$(21~)

S~ 70 BO'SaSTR 1 NG$( 2 .~, CHR$ ( 21.4 ), ), +SP,ACE; ( 2:) 5~,ell'll e:D$=BDii+:SI.H&:: 'e:O$o:::BD\\j,+:SD,$

569~ FOR N=1 'TO 100

SI'ml0 1$ (N , 1 ) ~5PACE:q> (2) ; Z$ ,( N ~,2 ) =SPACES, ( 2 )

5'711 NEXT 'N 5721il11 'RETURNI

574~ FOR CH=150 TO 1~1 575~ FOR N~~ TO 7

5760'1 REA,D B

577(l1 1 F CfI),""166 THEN B=B XUR 25~5 ~78ro YPOKE 8'CH+N.9

5791J NtEXT til

:,8~~ I F CH-=l~'5i, ThiEN RESTORE 5810 NEXT CH~RESTDAE &12~ 582~ FDR CH~182 TO 213

~83~ FOR N~m TO 7

584£l'l READ B

585~ IF CH>=198 THEN B=B XOR 255 586~ VPOKE 8*CH+N~B

5B7W-1 NE.XT N

:S88~ IF" CH~i'97 THEN RESTORE6i2G11 5891Zi NEXT CH

5~~~ FOR CH~215 TO 220 5910 FOR N=m TO 7

592B READ B;VFOKE e*CH+N~B 59"3~ NEA:r N.CH

~94~ POR A=~ TO 7:VPOKE 8~214+A~255~NEX T A

5950 RETURN

5960 DATA 1,3,29~63.63~57~2a~7

5970 DATA ~~128.56~252~252,i56,5b,224 590~ DATA 1~19,Sl,91~109~5~~27~15

599~ DATA 128~2~0~13e~218~182~236~216~2 ,q:m

6m~~ DATA 1~1~7~14,28~2B,14J7

601~ DATA 12B,128~224~24~,12m~12m~240~2

6W2~ DATA ~~e,3~7,15~31~9,3

603m DATA 0~192~64~224,176~2m8~232~120 b04~ DATA ~,0,2S,25,25~31~9~3

6050 DATA 0~W~152~152,152~248~24m~24m 6m6~ DATA 7~7,4~31~16,127~64~127

6~70 DATA 224~224~224~248,12~~2~4~3~~25 4

6080 DATA 0~0,0,0,~,~~7~7

6~9~ DATA 0~~,~~~,01192~224,224 61mm DATA 5,4~~~15~8~31~16~~1

611~ DATA 2Z4~224,192,24m~112~24B~56~24 8

6120 DATA 253~227~221~191~191~187j~22~2 7,1

61~~ DATA 127~131~59~253~253~157,59,2S1 61qm DATA 237,147 85~91~lm9~17~,219~2~ 615~ DATA 183,2~1!17~~218~182~239~219~2 47

6160 DATA 2S3,249~247~238~22m~22~~23B? 47

6170 DATA 191~159~239~247~251~2~1~247~=

39

blB~ DATA 255~25q~249,247~239~2~3~233!2 43

6190 DA~A 63~223~95~239~183~215~235~123 620~ DATA 255~23~ :1/~217~217~223~236~

39

6210 DA1A 25~~1~3~155.155,155,251!247~2 41

6220 DATA ?47~247,228~223~144,1~7~64,12 7

6230 DATA ~39~239,231,251~121 254.30~25 4

6240 DATA 255 255,255~255~252~251 24/,2 47

625S DATA 255.255,255~255~63.223~239~23 9

6260 DATA ~45~25W~24J~239,2~~~239~208.~

23

6280 DATA ~,~~~3~J~~47~4~~40.40 6::-:9171 OATPi 1lJ. a , 248. B, 2"4, "'i.~ ~ .!!}QI ~ <;1\21 63mB DATA 40~4~~47~S2~63"~~~~~ 631~ DATA 4~.4~.22~.8.248~ID~e~m

c ,/, l'l l"f-I T Pi ~. (i) • : 5:::, , 17i. :'""2 ==I'~' , VI , Ill. ~

6330 DA l" A 40 ~ 41~ ,~I~ ~ ~~I, ,40,40 ~,4Im ~ 4tm 6340 DATA R~T~B~Q~K,a~T~R

19'

, ,

U,m CPl"iaso JOC:Q de' &rroldglQ

p,~ro IqUI: lj)c>1. esta t a prim,e~ra adapl8.!l;iio para QomplUtador de SimmOlIS

S/ulPles,. urn. ca,lruh~c:idD joga de M,pis, e :p~p.et -

Simmons Simples ou Sim roi im"lmtado (;I::Ir urn suj etto chama:do Gwtavus Simmons. Deciidimol:j, ehamar esta versao de GUitUIJ"lUS PQrque 0 noRW pareee mais pempD.SO qLi11>l CI do S'eU prlmo pobre.

Nesh: jogo, cadI'! jl1gador tern que ua,cal' uma reta Ililg8lliido doill POIllos. Perde 10 prim.ellro que fmm,MI.IIIT:I 'IriiinS,lIIlilo de sua propria cor. 0 segredo {: ~(}f~aw '1.1 ,j!,dver&ano a formar pdMeillm C Lriil:nglJlruo.

o compuuldor se I;nca.rrega de mudar a eor da reta de ,aeoldo 00. 13' jogadarll de iQtii.car 0, ftilce:d,Q'f O£Stm, qUAil {i fOJ'llillllil!do um tritl!~gulo. ~P:ara lUI Car Ilma reta, bast .. m'Ci,'yjMent,ar (I Cut!S,o:r aU:: ,8. pas~~110 des>c:jada US;;Il'liId'l' o),oY,Stick au OIS tecla ... de ()on~rolc' do cursor da direit;a e da. esquerda, 'Qut odd) 0 cnm"sor estive.r scbreo primei re ponto da ret;:! a Hr

t'rll!93:da" aperte G boHlu;:I de l~m Ill! 011 barra de eg;PR~O. Em 5eguid~. dl!esliCJ,. que 0 curser p~lI'a '0' seg,undo Po:lllilO da .f·e:ta e tnmea <lI:pe]'[~ '@ bOi!:;l;a ~e Jim au a barra de 1~5JI<lii;O. Se a relall'!~O fQr ltI~rimi:[idia ,~I o~[mput~d~:i Sf rl;~~j.s~~ ~ l rllC!l·:~1iL c Iol:lm!.il~ra u:m: mid/al calIra.c~criS;lii~o. Ne,i;sC CI!I!SCl" sc:m. ()reo else emrar de RC1ViOI cem OSPOmitos illklal e 'finaL

o j'ogo nao podie lermin<i.r c!TIpli!t~do r,l a,a!'!:'Iiii)r.::ITIcn'le n:i'lo ~~ ncnlh!li"

Ina. ·'iI~,ltfl:gern f.ml: Iller (I p[im.e~(tI a. ]og:ar.

l~~e REM ,'{< GUSTAVUS - ISS] »>} l~l~ SCRL~N 2~0,~

.U~2i21 il'II1XFI LES::;::2: OPEl"" III GRP ~ 6" FOR OUTPUT

AS 1.

H;r3·ro IGOSUB 129@, 1 ~4~ unsus ] 19'0 !rtl5~ GOSUB 137w It!}6i') GOSUB 181210

.1 ~ JIGl.'I r nl~ N=l TO .HlIlZI!lI: NEXT N

108~ IF PLV-l THEN WIN=2 ELSE WIN=! 1090 PRESET '5W~160)

11l?l1ll IF W I "'~=2 TI-II:Ii'>~ CO'"'7 ELSE C[]""9

] 11 ~ CDLOR CO ~ III = PR] NT ;Jt 1 " II 0 JOIGIADOR"; ~!JI 1\1; "V ENCEU ~ au

L12~ PPESET (50,J75)

,1 1 3VJ Ph; r N1 # 1 ~ II QUER <-I []GAR DE NOVO?"

1 j 4~ Al>"" I Ni ..... E .($; I F ~,!$""" s" .oR A$==:" e " THEN

1i2l41Z1

11 :lm J f ~\;t="N" DR A1io;;: "n" THEN SCBEEN Ill; r DLOfi: , ~ ~ 4 ~ ,,~ ; SlOP

1 1£,[1) bU ru I1tU!I

1l7CiJ GOTO 11216r;lJ

118m REM ~«~ TELA »» ~ 1 9Q) I~I V ur I

i?~~ CDI OR lj~4~4~CL5

121Ql PHESET t(100~W):IF'R:[Ni'f ffl~"GU81AYI!J8" = PRE9El (92,8":: PF;tNT -ILL,!! ---------- "! \22ID rOR N~l TO ~

17"'=:0 PUT SPRITE r~, (P (N~ 1)1 "P(~1~2) ),3,1 ~ 24(_.1} NL x t Ii"I

12 :,12) F'PiE9ET ( 8, 32) = COLOR 9 = PFi I f\JT# 1 • "J 0 GA,OOR t"

1260 PRESET (18~,32':CDLOR 7:PRINT ~1~" JLi[;AD[lR 2"

1 '::'7 III RETURN

129~ RE""l «« lNU lALIZAi;~O »»

1291iJ l! HI P, 6 ~ 2 )

13rl10 RESTDRE

131~ FI R N~l TO 6=READ P(N,l):REAU (N~ 2 j : I~EXT N

13~~ S$~""cFDR N~m TO 7:R~AU A$=6$~S.+C HR:$ (VAL (.I&H o! -!-A$.) ) : NEXl ~ SPRI TE$ ( 1) -S't l.3.srn S$"""" c FOR N=0 TO 7: f~EAl) A$:: S.$~S,1H"C HR$ ( VAL ( "£d~;o +?\~$) ) ; 1\11 Xl = SPR I TE$ ( ::: )=91; 134~ DIM D(b~6!

135Q;1 BETURN

1361:9 :REN «<1'< INIC1l1 DCl JOGO »» 137~ FDR N~l ra 6:FOR M=l TO 6 1"'::'1::10 D(lf\I~I'I)=flI

139'0 NExT 1'1: NF.X T N 1400' RL l"UI~N

141M REM ~~« ENTRADA U UAD05 »» lq20 LE=~=Rl=~;rI~0

t4~~ A~8TICK(W' OR STICK (1) OR STICK(2

=FI=STR]G(~) OR STRIBe!) OR STRIG 2):A "'..:1 ~'H<EY$

lq4~ IF A=3 THEN Rlol llJ.5111 IF A~7 THEN LE""i 14b0 FI=AB9(FI)

147m FOR W=l 10 7ID~NEXT W 148~ m:.l'URN

1490 REM <{« JDGADA ?;»

lJID0 . NT=l:IF PLY=1 THEN CO~9 ELSE CO-7 '1,5Ui) COLOR CO

152~ PUTSPRITE 7~tP(PNT~1).P(PNT~2)~CO

,2

l5.;:..'1lJ 60SUE 142,121

154~ IF FI;l THEN G010 1600 1155:~ IT LE~l THEI\! P'to.~T ... Pl\n-l 15b~ IF RI=i THEN PNT=PNT+l 157m IF PNT=7 THEN PNT~l

1~8~ IF PNT~0 THEN PNT~6 159[;} (30TIJ 1510

16011!11 PLAY III L21:lJC"

16!~ FOR W=l TO 3m~:NEKT W lb2~1 RETURN

O~2

i,64rnl RETllRN

l650 REM «« VEl }~» 1 ,66 all S[]SUEI, 150m

167~ FRC=PNT~PUT SPRITE 8~(P(FRO,lJ~P(F

RO~.2))~13~2 168~ 8[]SLI]2! 1500

169~ mE5::::;P'NT,:PUT SPRITE 8\ (,~~~) ~ 13,2 170~1 GOSUB 163~

171~ IF FRQ~DES OR D(FRO~DE81<>ID THEN G on CJ 1 7~:U,I'

172~ LINE (P(FRO.1)+4,P[FRO~2)+4)-(P(DE S~1)~4~P(DES~2'+4',CO

173e D ( DES, FRO) :;:;;PILY :, D ( FRO ~. DEB )-PL Y 1740 FOR N~l TO 6

17'5tI!J IF D( DE5 ~ N) =PLY AN,D D (N ~FRO) -PLY T HEN DD~l:GOBUa IHa~

1.76&11 NEl>:T N

177m, RETUBN

178tl:1 :F'L.A't' U CDr:: u : GOlD 166m

179~ REM «« JDGADA COMPLETA »» 18~10 DD::o::~

181~ PLY=1:80SU8 166~ 182m IF DD-.1 THEN RETIlJi1N IB3~ PLY~2;GOSU9 Ib60 184m IF DD~l THEN RETURN 18S~ GOTO IG:m~

IBh0 REM «« FIM DO JDG~ »»

la7~ LINE CP(FRO~1)+4~P(FRO~2).4)-CP(N, 1)+4~P(N~2)~4)~15

}':880 LINE (P (N ~.1) +4" P (N,2) -loll) ~I( F"( DES i 1) +4~P(DES~2)+4)~15

1890 LINE (P(DES~~'+4,P(DE8,2)+4)-(P(FR O,1)+4~P(F~O~2)+4),lS

tq~m PLAY "T14~L4C8EFGFEL4CL8CEFGFEH 1910 FOR W~l TO 20W.NEXT W

1921Jj r~ETURN

193~ OnTA 127.i49~19ID~117.19rn,55 194~ DATA 27,2q~64,SS,b4,117 iQ50 DATA ~~~7E~42,5R~~A~42.7E.~0 1960 DATA FF~B~DO~A5jA5~aD~BJ,r~

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->