-

Second Class Postage Paid at Menlo Park, CA Address Correction Requested

FOR THE IMAGINATIVE SMALL COMPUTER USER! I VOL. 8 NO.5 ISSUE 44

ALSO PUBLISHED BY PEOPLE'S COMPUTER COMPANY: DR. DOBB's JOURNAL of COMPUfER Calisthenics &

Dr. Oobb's Journal is a highly respected reference journal which fills a unique and Orthodontia solid niche within the microcomputing world. We publish discussions and examples of general purpose system tools, articles on OUR READERS SAY: legislation or trends affecting computerists, a consumer watchdog column, as well as a "Your level of information is fantastic .. the best I" variety of monthly columns designed to guide and help readers wend their way "Dr. Dobb's has presented some of the through the confusion of a new and bur­ best and most intelligent software for the geoning industry. advanced hobbyist. Please, please stay that way I"

Recent issues have included: ' An AII·CP/M "Keep up the heavy software, non­ Issue, including an overview of CP/M·compatible commercial, short miscellaneous, unslick, software, the history of CP/M, utilities, inter­ lots of letters approach: it's unique preters, etc. - Mathematical Typography by among Byte, Interface Age, Kilobaud, Donald Knuth - A Microprocessor-Assisted etc," Graphics System ' Interfacing a Home Computer J to a Large Scale System - Improvements to 8080 PILOT

93065JOHNSB09 Dl 22 5 l

BYRON JOHNSCN ~Y8 l 356 LAGUNA !ERR S 1M! VALLEY . CA 93065

• Editors' Noles Slafr lO-DAY FREE TRIAL Send for ollr FREE Ciltalog Things at PCC are changing. RecreatfOllal Edilors Compuring has a new slick format, we hope Bob Albrecht March/April 1980 you find it an improvement. There are per· Tracy Deliman Volume 8, Issue 5 $100 FREE ACCESSORIES Hazeltine sonnel changes too. This is the last issue to Don Inman be edited by the four-headed Dragon (Bob Ramon Zamora WITH 16K or 32K PET Immediate Delivery- Albrecht, Tracy Deliman, Don inman, and W","" you buy. IlK Or 321< PET, apply $100 ' ..... 'd PET Copy Ediior KUIOOriH. FREE! Ju, t ,nd,e818 0n your o,dar !hl l you hav.' Ramon Zamora). Begin ning next issue, Dennis AJlison, long_time PCC President, will take Sara Le Forge reduced thl COSI of you, Icc• .,o,l... by $100. SUPER SALEI Publisher TermInal Package with 8K PETs over. The Dragonfolk will continue as con· tributing editors; look for them in the Com­ Ann Merchberger SPECIAL FEATURES ...... S .. Spec.. '_ uierTown USA project, and as authors on these ' ,' ;:. : ,;.- 1500$995 Production Manager ...... PET ACCESSORIES pages and elsewhere. Carole Cullenbine 1\ REG $1069 4 RECREATION APPLE II HI-RES GRAPHICS Artist Comrno<:lO •• Dual FlOppy DISk Om. Changing Directions AJeeca Harrison by Arthur Wells, Jr. Commodore Print'" (tr>(;ltOn I"""') . Typesetters .. 5195 CommodOre Punt.., nractor leed) Recreational Computf,zg is a magazine of the 18 CRYPTARITH MS • m Second e ...e nt-trom Commoder•. Phyllis Adams ...... •...... •...... •. S9t5 Commodor. PET S&rvlce Kit .' future. Even in thi, age of electroni c commu_ Laura Mendell by John Davenport Crehore ,$1,295 Bee~r- Tells wnen laPe i. load&-rftad c ~ . r.ct"" in 24 row, of SO lette rl Circulation Manager 30 A NEW ALGORITHM FOR CHESS, PART VI Typewri1er"lyle ~eyboa'd up with the proliferation of computer maga­ 1 RlJ..2"32 C Int.. dace extension POn Zin es. Most magazines have fo llowed the model Michael Madaj by David Chelberg & David Watters 1S-lnch 9·lnch Oi~ct eurOO, • .,dr ....ng we established; oflen they are more effectiye Promotion Altist 41 MORE PROGRAMM ING PROBLEMS & than we have been at PCC. They have had the Sahnla Pannuli SALE' $169 advantage of greater resources (PCC operates SOLUTIONS as a non· profit and has always been a boot­ Sustaining Subscribers by Charles Somerville & Len Lindsay OJOwn,,, strap operation). We don't have the subscrip­ tion base Or the advertising revenues of our Bi ll GOdbout Electronics VIDEO MONITOR competilion. Bul we do have a vis ion of the Byte Publications GAMES Zenllh'. Ilr.t color video dl. play future. Paul, Lori and Tom Calhoun de.lgned .pecilically lor compute,... Louis R. Patzke apple II How will Recreat/mlal Compl/ring change, 9 GAMES CATALOG p/fIs Ttli. '~'I""h mO<1itor i. ZIMt• • I".t cofor "'O&(l ol'~IY Mostly it will be a change of focus and an Retaining Subscribers desig<>eI. qUIet. the,ml l oper.tlon. and computer recreations. While we at PCC \"\ope' & lowe, CI$I; plOning rOUlin .... will be developing some of Ihe malerial pub­ O ""__ ... e " ... · 38 PROGRAM INSTRUCTION BUILDER Appllcotion MOdul'" IS<&S ...) Stlnd.,., PIlc ROM. lished in it is you, ...... --_, Recreational Computing O~_ • •_· PAPER TIGER 440SPE Siolisties ROM. Ma'" ROM. Flnlr1r;i.l Decisions our readership, which will provide the most ",.. ... by Marc B. Stanis ROM. SuMlylnQ AOM _- ...... -. .-"'" The GraphIcs Printer interesting and thought-provOking articles. We _...... _ ...... 39 DATA RETRlEVAL: AN INTRODUCTION ~~.~~~;::~~ ~~~ tb':.I~:wlc'!fc~f~~~ It;:".~;:;~~ Ileed your serious articles and your off· the­ by Ramon Zamora for Apple II CIII I fo' complet" p,Od""t inle Ind opaCs' wall commellts. """,,,,",,uTQ...... ,...... _ _. HP.31E·SciantWc. S<&9.95 . Hp·32E..Advlnced scien­ __ Now you can p,lnt n l~ t,arlon •. blo(:k lene ... cha'I'. tific. $66.95 . HP.33E·Prog •• mmlb\e .,,\entlli<:. S79.95 Even if you are nOI a pOlential author, we o "'c-o.,rw...... g,""~,, .nd mo,e-III ~rI(f", soltwlre conlrel. And .-0"'."' ..... _._ • HI'·J7E-Busin... ffIIl""gemen1. $69.95 · HP.3SE· still want your input. What kind of articles 0 ...... " . DEPARTMENTS wilh the " "l>Inded by-ao.c"' umn CRT "",een CONTINUOUS MEMORY CALCULATORS Hp·33(;..S1 14 95. HP·:)oIC·51 " 95. HP·:!eC-$I-W ~ now and what will be important in the future? ...... _-- 28 PROGRAMMERS' TOOLBOX You are Out biggesl resource. We also need your financial support. To make .uo_...or ...uu . "...... 42 LETTERS INFORMATION Recreational Computing a continuing success ...... ~ .., .... ' ..... ,. ....• oIIlppfng ond ~.ndllng . loll .... , ..Id.nl, odd § 'Io oal... I.. ; - 'oL ~_I. '.' 44 REVIEWS we must have a larger subsCTiption base. Urge VoL'._'.' .• COlftilfued on pg. 43 CO<'er by Sa/una Pannl/tl

Recreational Computing (ISSN #0164-5846) is published bimonthly by People's Computer Company, 1263 E1 Camino Real, Box E, Menlo Park, CA 94025. People's Computer Company is a ta.... -exempt, non-profit corporation, and donations are tax-deductible. Second class postage paid al Menlo Park, California, and additional entry points. Copyright 1980 by People's Computer Company, Menlo Park, California.

FOREIGN DISTRIBUTORS OF RECREATIONAL COMPUTING: LP Enterprises, 8/11 Cambridge House, Cambri dge Rd., Barking Essex IGII 8NT, UK; Electronic Concepts PTY Lid" 52-58 Clarence St., Sydney, NSW 2000, AUSTRALIA; RS·232, 186 Queen St., W. Toronto, Ontario MSV I ZI, CANADA: ASCII Publishing, 305 HI TORIO, 5-6-7 Minami Aoyama, Min ato-Ku, Tokyo 107, JAPAN, Ing. W. Hofacker, 0 815 Hohkirchen, Lindenstr. 8, WEST GERMANY, Hobby Data, S200 12 Malmo, SWEDEN; Computer SlOre, P.O. Box 31·261, 22B Milford Rd., Mi lford, AUCkland, NEW ZEALAND, Systems Formulale Corp., Shin-Makicho Bldg. 1- 8-17, Yaesu, Chuo-Ky, Tokyo 103, JAPAN. line 110. If you only have 16K of

you typI RUN, the name of the pro- "::~~::.:_: Hit any key. The screen • on J)lddte O. You will see I . ,..... hold the button down. Peddie peddle 1 moves it right and 't:.:::v:: W8fIt to stIrt • line. Then push Recreational Apple II ~ which • line will be drawn. you push the Space Bar. after each time you fix be easy to remember this Hi -Res Graphics ~Ch~::: In the program to work. ~ $pice Blr.1

Lines,ihangles, and on 'the screen may disappear. i erased il, Iiowever. POSNed IS the start of the line Other Shapes If you want the dot to remain ItiddIeI • httle before you push the BY ARTHUR WELLS. JR.

dot to lftOther location where you be. PuIh "L". A line should appgr to .. present bUnking dot loea­ Ar'huf Wells sends a steady flow of great programs (01 the and draw another line by Apple. Here is his latest offering an easy·ro·use shape ~~~=::~IIJo: ~ tar. , Notice that generator and Hi-Res graphics pack-se. Arthur encourages rt IocItion where you POSNed a dot everyone to use the program and talk with him Bbout it. ...tof the I.t line you drew. Thus Write him at 1171 Cragmont Ave. Berkeley. CA 94708. RZ "J~!!\" .. ~"'. the end of the last line you The program permits anyone to draw simple or elaborate :~~~~dot=,~by: using"L", Space"0". Bar,The "0",drill pIctures on the 280 X 160 dot high· resolution screen avail a.... n lOon. ahle with the Apple II. The user never has to know or learn nything about programming, grids or coordinates. The pro· = AWlt ett.r you make the line by gram lets the user draw dots, lines, solid rectangles, triangles ""IIPII" BIr, Iftd then push "E". This will and parallelograms of any size, any place on the screen. tubroutlne Is the opposite of the Unwanted lines and shapes can be erased. Color can be se· .. nt from the last dot POSNed by lected. Cursor coordinates can be identified if desired. Pictures of 'th. dot. To erase everything can be saved md recalled, and a recalled picture can be modi· fied. or for any other reason ~~~;='~'~IOO:rd:., of the location of the .. 10 __ 1 The coordirwl18 will

...... of shapes the program ... my choice and you COIJld put 1nftIId) To call up I shape, III!'. __ you want the sh_ to start ...... ,I.OOIIAM$ ~. if you •• U"U • 'op" wlnt I __ •tri.,.. The program will .. ..-, • ilCtlngl. or parlllelogram (enter ., _ _, .0,," verticil dlmensionl or size of ...... 111111111111 _use the program tlkes _ must enter It by pushing "RE· . , 101.10 ",.,. 111111111111 -, ,,~ .. time 'RETURN" is used. After iii,...... " tho specific shipe by number

4 RECREATIONAL COMPUT ING MARCH APRIL ",eo • upon request of the program. The triangle subroutine will EXPANDING THE PROGRAM also ask if you want a right or isoceles triangle. This program is by no means complete. There are several Remember that after each shape is printed you must push the things that can be done to improve it. Space Bar to continue. 1. I wrote this program in Integer BASIC before disc drives Vou can erase any figure, or a part of any figure, by using the and Applesoft ROM cards were available. If the program button on paddle 1. As long as the button is depressed, the were in Applesoft we could shape wi ll erase when it would otherwise draw. To erase the al prevent the program from crashing under most pre· whole shape, depress the button before you push the number dictable circumstances by using ONERR GOTO, a of the shape you want and hold it down. For example, to erase command unavailable in Integer BASIC, and a triangle, position the dot, push ''T'', enter size, select " R" b) have the program draw circles and curves, because or " I", push the button on paddle 1, and select the number of Applesoft has floating point arithmetic. Someone the triangle. should definitely do this. 2. There are already programs which permit the user to rotate Vou can choose the color of the shape: after Space Bar push the Hi· Res graphics page up and down, left and right, and "C", then push "B" for blue or "G" for green, call the shape which cause the picture to become a negative of itself and proceed. The color reverts to white after each shape is (white to black, black to white). Another program allows drawn. you to merge two pictures, if you have 48K of memory. These programs could be incorporated into this one. (I did There is a block erase subroutine which will erase without not write these programs, but I will see that they are regard to the position of the blinking dot. To see how this published herein if there is any interest as I know the works, fill the screen with a rectangle (by moving the dot to author will be happy to share them.) People can probably (0,0), call Rectangle and use dimensions (279, 159). then push think of many more ways to improve and expand this "M", and enter coordinates as requested. program. I would be delighted to see some attempts and Vou can combine the draw and erase functions to get all sorts their results. of odd shapes. Print a triangle, then go over it with rectangle #2 or #3 in the erase mode. This will give you a triangle of lines instead of a solid one. By using the erase function creatively, you can cut out almost any portion of any shape. A little planning helps. Listing Alphanumerics: To get characters on the Hi · Res screen push "W", then enter what you want printed, push RETURN, '"- enter coordinates where the characters are to be printed, and , push RETURN again. Space Bar gets you back to the rest • of the program. I changed several of the characters: "I" will ,~ print a multiplication sign "X"; the quote sign will ' print a division sign "7"; "&" will print a degree sign" o· ". These 11 might be useful for creating math problems for children.

SAVING THE DISPLAY I " If you have a disc you can easily save and recall pictures you • are working on or have finished. " ~ If you want to save a picture, push "H". Then name the - picture and push RETURN. The program will save the picture and tell you when it's through. Push Space Bar to continue.

If you want to bring back a picture for more work or for any other reason, push "5" and name the picture. Then push RETURN and the picture will appear. Push Space Bar to continue.

The picture is moved and loaded at S2000, the primary high resolution page. If the program blows up in the middle of your drawing, you can save what you have with the command "BSAVE [namel, AS2000, L$2000". If you must save to tape, go to the monitor and save the picture with 2000.3FFFW. MARCH·APRIL 1980 7 , RECREATIONAL COMPUTING -

,-----GAMES CATALOGUE------,

£!t~~~~~!~i~i~i~i~~i~t~l~i~i~i~i~~~~~~~~~~~~~~~~~i~i~~~~tt~~ ii8i~~~~8~i~~~i~i~ii~!~~~i~ ~ ~i~i~t~~~~i~t~t~t~t~t!~~tttttt~g Som~ of th~ most populllr gllln~s of thiS (_u.... frolll Scott A.wns: pr_._ TR51 $1 .....11' l .. ~ ~iii~i~~I~~*~~i~i~i~i ! ~~~i~~~~~i~t~t~~~~t~t~t~i~t~t~tttttt~a _ason lind last. for TRS·80. App/ ~ lind ..... dllt ...... of ...... __ onilablo) TR51 _00\,,,10. ..~ ~iii~~!i~a~~~*i~i~i~i~i~~i~~~~~i~t~t~t~at~t~i~~~i~tt~tttttttt~l PET. fin list~d h~n. Th ~ v~ndor's nllm~ lind ell tlddnu fltld pric~s lin illclud ~ d. Tho_ high­ ...... r ~iii~~N~~i~~~~~~~ ~~~i ~i~ii~~~~~ i~tt ~ tt~tt~tttt ~ i ~i~~~ ! ~ tt~ttttttttttttf ~ light~d with lin lIstuuk hll~ n«/~d /ilVO," Cyboomou .... AnC.... lil TRS,IO Son- f __ ~iii~~~a~i~i~g&g~~~. i~i~iii ~.~r!~ tt .i ~i= iitt~.~.~~~~tt=tttttttttttt~~ flblt nv/~ws by Jim Bflrfu. Mark 00# lIt1d 8o K~ 1l 2 R_ W. RobItolllo ~ii8~~~~~ihili~~~.~. i.i~i~ili ~~I~ tt .I~~~I.ttlttl.m~~itt~tttttttt tttttttt Dflvld Ston~. using 1I gam ~ n l'/~w plllll d~ · Son F ._looo.CA" ' ~ P.O. 8"" .. U v~lop~d by Marin Computu C~llt~r /n SlIn MIIlO'd. NN 0305iI iiii~~.~ii~i~ili a. ~~ i.i~iail!lilai ~I ~~~~ .ttlttrett~~~*tt~tt tttttttttttti Rfl/ael. Favorable means that tlre_ pro· TII:$l TAI'AN Th. Chi ... T..... of fI,. l aoo .. S 9.9& 16031813·11" TR51 TREK 71 Sp.«'rek wl'b p.ph.lco ~.9& grams generally rare high in overall VfI/lie. TR51 1000 MILES Ro.d •• .,. p m. os. TRS_IIO 1.1..91 GA..\lES !!~!~~~····i~~~~.·~~jjj~=~jjj=jjjj~j~j~==3==3~===:~~EE~~ ~.~$ •• tt •• ··· ·e~·!···~ ·i· ·.···~~~~~~~~~~~~~~~~ •• ••··•· •....• mllke good ,,~ 0/ the computu's sptcl'" TR51 OAME5ETTE I AwvI. Con« .....lon • • 'c. l.I..n .• •• TRSI WI/fo .. I, 16K 7.91 /e/HI,nl. havt clear /IIst",ctlons, lin Crt' TII:SI Bockl.mmon.16K 7.U arlve, '"rertst/"g or chal/eng/llg. Tlre$e lIus TII:51 K·Wlnl flshl.,l/.. 16K 9.91 find re.·;ews an excerpted {rom Robert I"" ... , Sohw... TR51 Ttlpo", I.K '.lIS E/llot Pur$er'! Softwan D/rectory, Winter P•• _ouvt>. NH O:WU TR51 Crlh ...... 16K 7,91 [103112.· 72911 TR51 COncon ....lon. 16K 1.91 1980 (POll Box 466. E/ DOl"l.ldo. CA. TR51 "", .. Inl M..... 16K 1.91 9562.1). _ TD TII:51 a..lo/lnl...... dl.,.L ...... L.ond .. (OOOI) S 1,9$ TRSI TIm. 80mb, "K '.95 TII:51 Sp • .,. T,.k II (0001) 1,91 TRSl Bortoon 11:101. 16K 9.91 TR51 Robo./ ....k.owo'.4K 1.95 TRSI RoIK>tCh_/Hono "'-oo ../ Bo ...... (OOlJ) 1.95 TRSI Sp • .,. Bo" .... 16K ..... ",91 TUI 00 l)o:ooo (DOll) 1.95 TRSI Sp_ 110 ...... 11K

"" __'""It In_lonooI. Inc. )0100 WI ....I ... Iou..... " APPLE SOFTWARE L ... A ...... CA 10010 [2131 lI4·C.71 TRS·80 SOFTWARE """'" eom,pu_. I ..... TR$1 OOMPIJTER MINI)READER 16K 102&0 9ondloy D... . 6.9' Cu ...... lno. CA 1Mi014 '''''... _.In ...... ; ...... 1 TII:51 CO NCENTRATION 16K 6.9' Scon Ado .... TUD DIM/lllK 49.9' 10K 34315 TRSD DIll: 11K Applt Applt Trok/S"..,. W .. 15.00 1.5.95 Appl. eo..... Do"'o/Brlck Ou, Loncrw_. F L 32150 TII: 51 OOOILE 16K 6.9S 1.10 13011[ Ul·6811 TRS1 D.O.F, 16K 9,95 Applt 8I&.kjock}Slol M.chln. 7.S0 TRS1 FI FTEEN NUMBERS 16K 6.95 ApplO BI .... h"hm/M ....."' ... d 1.S0 Applo Wo"/Olhollo/Or.",n mo .. 7.50 _TR51 A lI

PET GAMES Reviewed by Len Lindsay

PROGRAMMA INTERNATIONAL lions usually are also part of the program so it Checkers- You BJIla inst Ihe PET. Besl for is OK if you lose lhe written instructions. The beginning players since til e PET only looks one Programma In[ernational at 3400 Wilshire games I lIave played from these tapes seem 10 move allead. Blvd., Los Angeles. CA 90010. has quite a Ii· be verr well done, higlily user oriented with Dodgem -An inleresting strategy game. GAMES CATALOGUE-coo,;o,-.. ----, brary of PET programs. Most will work on good graphics. Recommended. either OLD o r Nh"W PETs, bUI some have two Board Games versions. one for each model of PET. The Yahlzee_ Up 10 4 players can play. cassette and any written instructions come Awarl - This is an ancient Africon game of Blackjack - PET is dealer for up to 4 players. nicely packaged in a pLastic pouch. suitable for strategy. It is you against the PET, Bnd the PET ",,,pi< sp.... ond Spon, Gom •• "'1'1'1' Kldl1urr 11.00 • PET SO ...."lf (machine Ian,u, ,<) 10,00 Backgammon -A good grapllic version. display in B store. gelS bener the more it plays. Appl. S"''''1 ond Bn,n Gom .. ...pple Pipkin Pl.~orr, 11.00 PtT SII' W... Sh"",oUI ("q. hl.K COlO 9.95 S.onAdo..... Depth Charge- Your mission is to sink Ihe taking bites OUI of a cookie. You lose when Appl. Trap_ Trap the computer's number belween Alloy 16K C... [ 6.9S Bo.J.I,~ PET S",ofd4U .. I subs. $9,95 forced 10 bite the poison square. Applt T"vio 80. 41K Olst r 19.9S Longwood. FL 32150 P~T Eo propom'l ~.9! game 'M ill e Bornes' pitting you against the try 10 get Ihe best pri ces for your furs. "'pple S •., 000,.,. 8K Can I 6.95 PET S...... 'lon.1 5Omulo.lon.· I. (Ove proJtOms) ~.95 Backgammon. It is you a8ainst the PET. Tile PET. Don't gel II flal lire. $9.95 "'pple St., Voy.,e. 31K C... I 15.95 PET LOll< Gom •• ·I. (.i.< p'OIn",.) 1.95 Pt;7 S ... B.o,,1< -p.phla and .ouod 1.95 Hammurabi - Also known as Kingdom, Ihis PET seems to playa good game. $ 10.95 "'pple Stun. Cycl. 16K eo.. I lI.95 .. PET GtophlOl G.m ..- I. (r~ PfOI""") 1.91 PET 1>11" L..ondinl_v.phlcs . nd",und 1.95 Z·A·P-Move around the screen 10 lIit the classic computer simulation puts you in charge PET Foo''''''II-, .. p~iCi .nd sound ',95 Crossbow-Here is an excellent example of a ..... ppl. Supor Du"..,on oaK DIo~ I ~0.~5 .. PET C"phi"" G.m ..·~. (,ll< program,) 1.Ql targets, but watcll OUI for decoys. $6.95 on an ane.ient country, Sumeria. You decide "'pple O.h<. roulette game for IIII' PET. $6.95 Word -Guess what word tile com pUler is think. fraclions. $9.95 P.O. Bo. 3863 3400 WIloI>I •• a,On~ ••, hi. by .~o <.. I 0.00 PEl C"p'/TI.·T" To. PET Echo-Use witll or willlou[ sound-match players chasing each other about a mne of ... ppl. COney Island II.~I PET Willl.m T.II -Shoo! .ho .ppl•• nd "'*"! 5.00 PET D1 PETI 5.00 6.95 players. alternating pitching and batting. As Apple F%h.e. Pllo. 11.9! PET Smo,-KlII.ho ..... 100 and ....,. 5.00 PET E~ 1220 PET Slo. M"hln. 9.95 Creative Computing (PO Box 789·M. Morris· Sweep-Similar to the DEFLECTION game. Komp ..;n.On",,1o PET Sp... W .... 9.91 lown. NJ 01960) has a series of programs on I(OG 1 JO. C,nad. PET Slotfl

MARCH·APRIL 1980 11 10 RECREATIONAL COMPUTING - tDIOTS • CUDS' .., • Pl'S ' , hundred or so for the extremely rare • SHIPS' acquires an experimental flavor, a his· In the Second Flight phase the Recon is (by Galaxy·1I terms) victory of a colony IDIOTS PHASE 1 1 THIRD Pl 3l~3 Pl • PHASE 1 , tory and a futu re, something like the ordered to 2·24·J. While there, the ship over a starship! All of the minerals on 25 "PI • PHASE I , · • t PHASE 1 A BIT OF quality of evolution in nature. receives still more power and life support ,• U1I 02 board the Recon eventually reenter , 3121 02 • PHASE 1 ,• while mining the three mineral groups , Ull 02 • PHASE I the atmosphere of the planet and become , 1351 02 • PHASE 1 ,• GALAXY-II Three reports that help explain Galaxy (G 03), receiving matter·antimatter drives available once more to the colony. , 1161 02 • PHASE 1 II are included in this article. They come and hulls, and visually probing (V PB) , 5361 02 • PHASE 1 • SECDHDPl 31U Pl • t PHASE I • from the current version of the sample the planet. TItis tactic is interesting, TItis covers many aspects of the game , 26 01 • PHASE I BY BRETT A. TONDREAU , 26 01 • PH ASE 1 " game used to test the programs. The first because the colony is inhabited by called Galaxy· II. There are many items , 2t>0l • PHASE 1 13" pOl ~ he Turn Interpretation, is the the Infoser rebellious members of a RECOH 3142 VE H •o .I. HURD U PHASE I © 1974, Brett Tondreau left entirely untouched, but you now 13 MA PHASE I actual rn subn~the---fa f barbarian race. These rebels are the most • 13 HU • PHASE 1 " have the fla vor of the game. Galaxy ·1I • n2 IE • PHASE 1 1>" ld.iots (a ~ eh~ to e~mpUry Oi 'le group within Galaxy· lI ; they " The play-by·mail computer game se s is played fo r fun and lasts about a year. • 132 5H • PHASE 1 to be gail/illg populariry, as there are dumb feduliques). The othe. ' 23 (I\) gtvo the ,eaej H' 8Ompo· the rebel vessels are unable t& arm the ·.. • " " game. I call it Calaxy-II. !ilion. R.econ thUi amsists-of: 13 MJtter· Rcoon. None of the rebel 'ps has ·" ADtimaU ... drive. (MAl, 13 !nil! _ 11111111 2 2 2 2 222 2 2 1 1 1 1 1 1 1 1 3 1 ~ ~ ~ 4 4 4 444 4 5 eaol'8tn power to fIre beafps ;Captain A COL' 1 2 1 ~ 5 , 7 a 9 0 I 2 3 '10 5 6 7 121~567a90121~567a9012145'7a90 Galaxy·1I is played by mai by peQple (IllJ) (clasoifylng ,he >hlp " • _ Nard pins a great deal of! experience , all over the United States and; Canada. ExpIO", .l.l8I>' or M£L), 132 boam>ud from \he eocounten, "progressing from a • • • • Each game is run monthly when.,.,e take sOi.ld. IllE ole SH), 100 unil. of life ptefloUS e.xpe.rionce 1evd of 21 to 306, turns of all the players in the pme, support (ts). 60 units of power suppot'l wblle- each. of the- reoel commanders , ~-+~+-r1-+~+-r1-+~+-r1-+~+-f·+-·+-r·+-r1-+·~·17r1:+·-r.+-~-t-f+-tlrt:ri-tlrt-t-rl

keypunch them, and run them thro\ql't (PS) an6 90 itsdUStriaI units that r8pNSCllt pitts SO unJu of qperience. While the 4, ~-+~+-~-+~+-~-+~+-~c+~+-~c+~+c~-+~+c·~~·t-r·+cr·~t-rt-t-r.t-·rt-t~+-rt-lII II IE II 11)( "II II II the Galaxy·1I programs on an IBM- 9OUpoo colonist' and their colony {OUll' ~ hold tllei.r. -eolony and ships, the 3033 mainframe computer. The programs @tion equipmenl. Tbe colonists are Recon fills tt ~nks of power and life , ~-+~+-~-+~+-tlC+~+-f·1fr1rt-t1f+·cr+ctl-t-f+-tl-t-f+-t·~·t-~~·t·-r.·t-r·i-tlrt-t-rl produce laser printed reports detailing pla~ into 'cold. sJoep' 10 reduce the support, re~es 390 units of the colo· , II " II II II II II II II quant1tr...p( life support -ooeded while every activity of every ship captain, ny's minerals, and A Nu rd gains more , • II II II II • • starship, asteroidal port and planetary in transit to thtlr lU;,w home. experience than any of the rebel leaders. colony under your command. • • • • • In the First Flight phase (phase = 2 on TIle Third Flight phase of the Recon • ~-+~+c'tlc+-t+-tlc+~t-'rt~rt-t4-t-rt-'~-+-t+-~-+-t+-~-'+-rt-+-t+-rt-+-t+-tl-1 The rules to Galaxy· 1I were originall y the listing) the Recon makes her maiden repeats the orders of the previous flight ROW ' 10 II II ,( II II I! written in 1975 but have been updated voyage, flying to 3·43 orbit I. Items 25 phase, ordering the Recon to fly to an ,\ • • • • five times. The rules explain how combat through 27 are conducted at 3·43·1. alien, barbarian orbit and take minerals. is calculated, the physics of the ships, Item 25 has an error. Recon has received 11tis time the Recon encounters the Info· " ~r+~+-~-+~+-~-+~+-~-+~+-~-+~+-t·1ft-rt-t~+-rt-t·~+-r1c+-r.+-tl:+-f·+-f·-rl and communication procedUres with your only 90 IUs and in this instruction the ser planet Keep Off. 111e Keep Off is " ~~·+-~·+-+1:+-t+C+1-+1-+-+1-+1-+-+1-+1-+-+1-+~+-+1-+1-+-tlCf-t·lr.·tlr·+-tl~·t-r1:t;rl units as well as with the other players. player is ordering A Nurd to found a loyal colony of the [nfoser with reo 14 II "J( II II II. II The rules also explain the equations colony (FC) New Glop with 900. The latively sparce minerals. nus is obvious used to detennine the population growth program will check the number of colo· when the Recon is unable to receive "16 ~-+~' r1c+~t-rtc+~+'cr+-tlc+~+-tl-+~+-tl-+-f+ctl-t-f+-~-t-fi-tlrtII II: If -'tl-t-fi-tl-l rates, the efficiency of factories and the nists on board and report a shortage to 130 units of minerals I and III. Notice dreadful circumstances under which the player. The colony will then be that after the colony is mined, it identi· • •• • • colonies choose to rebel. founded with the available colonists­ fies the hostile designat ion of the Recon, " the 90 received earlier. The other item opens fire, and vaporizes our ship! ,. rt-t+-t4-t+crt~+1-+~t4-++-t4-t+-r1~'r1-t+-t4-t+1rt-t+1rt-t+1-t~+1-t~tl-l Galaxy ·1I was designed to improve with on line 25, the 'DB', indicates that The colony wins. The governor of the 20,. t4-t+1-t+1-t+1-t+-~4-~-tt4-t+1-f'+1-t+-~4-t4-tf+-t+1-t+1-t+-rt-tf+~II II II use. As suggestions for improvement the colony is designated as defensive colony picks up all the experience of the from the players are implemented, G·II barbarian (if fi red on it'll retum fire). Re con's Captain A Nurd along with a 121~567a901214567&9D12:14567/j901234567a90121~567a90 " RECREATIONAL COMPUTING MARCH·APR IL 1980 13 -

@ -I -- -~ I I I I ; • , '" , '"- , @ t - .... co .. o -...... -'0 o -- ...... -,e> -. c ...... - """,-,on - < - o. O . ~ -. - • . ona 5 X 5 board ona5X5board • -, . • • ,- . • -, . •o • · - -•• · - -•• · - •• .0_ • .0_ -• • • o _ -• • -o ~ <-­u. .. o <-­u. s ••-. s A second type of piece is called a rider. Riders make successive • •- .. 0 o , • •o '.0 <.- - •< < • .0 · , < • • •< -_. <0 • U< -­<_ -­ • u • • • • u -­ < ~ o ~ xx < leaps as long as all the squares they could land on in the path o • o o0 __ u -•o •o •o • •o .­ , • • - 0_ • < • of their leap are unoccupied. A bishop is a (J,l) rider-that is, , -~ - < -.. - -.. < • • < • • • • - _0_ o. --• • - • -• • • • ••• .­• -- •••_00 • ..0_ each step on its path is diagonally related to the original .­ • • 0 ·% ,- ••• • • ••• u - ••• • o. _. ~ -. position. Night-rider is the name giyen to a knight turned o _0 •o •o •o :o 0 < -E •<_0 •• <. , ••• -. -E _0 • - ..o. •o •u_ -• • •• <-- _. rider, one that cannot leap but can only travel an unoccupied -< • u u u u u -ON • • • < • < < < < o _ • « • • < o. - - - - • •• .u•• o •0 '"- •o •0 circuit. • • • • -• ••• < "'00"'''' •o. • ...... • ...... -•• ... 00 ... '" % •o ,• ••o. :. ... :;. .... • • • • • .._.0 < ... .­• • :. ... "'''' • -• • • • • o_ "' "' A third type of piece is the hopper. Hoppers move in fixed < - - - - "'''''''''' .. .< ...... u • - X< , "' .... w .... • "'''' >C<• •< •< •< • "' ...... • .­w> "' ... "''''IL ... -•• , "' ...... 00 ways like other pieces, only they must hop over a piece -•• 3 • o -o ~ :: O. ,.• o 00 .0 ~ :: -, before they can land on a square right beyond the piece. • <>0 <»-- • • <_.-­ -. •_ 0> • - Il - , _ .. · _.. • < For example, the Grasshopper moves like a queen but can only -• -• - > ..• •• "" • •• • • < • <-­ .u • • •% • • • • • < • •• move when it can hop: -• -• · ·_ 0 ·o ..• · • • • < o -. • •- 0% •••0_ .. -> o o o - •0" ~ is -.3< ~ is o. < •o - - u -0 BY HERBERT KOHL - - - • • • .0•• • • .0_•••_ • % 00 • - • _0. • .. •,­ • • -­ -.._0 •• -. Fairy chess could equaUy weU be called fantastic chess or in­ Jf • -. •o , o• --• • ._. > - > - venlive chess. It is not a game but rather a concept of all the Thil hopper mU$1 have a • • -,"• •< • • }-' • u-"'~z __< o • .u-- "'~z UP 10 - 0'0 .. -... different chess-like games that could be invented and played. cleaf palh Ihe piece • o 0< > 0 <­ uo __0< ---> > , o <-". • ..0 , • ••<. Imagine a rook that could only move three squares at a time, , \...;_' .h.OP,'_~_'.',. _ .... ~.,., • •< ...< •< •o - , < • .0 % % - , . < . - o - -- • --• .- , -• -­ - a bishop whose move power shrank each time it was moved , · N • • >X · - • -. / •• ...... , " , .0 so that it slarted om moving along the whole diagonal and • • O -, •o .-•• after 8 moves shrank into nothingness. Think also of a game • • ·U -•• o ","'Z,,", "''''- .,'''. >. -• where the object is to trap the queen or force your opponent ® -• "'._0 -•" '" .."0' -•" ••- .0• -o •0·· 0- •• , ••• •0·· , ", ... .., "'0'" to capture your king. The board could be any size from a • •••z ... ", ... ·... ' • .0 z ...... •o •• • • _ ... :z:>-, • -.o u • • % - <- , "'..,.., ....cc .J...... £ 5 x 5 square on up. All these are fairy chess variations. Dawson IisIS other pieces he calls composite men because their • - -, ·~ .. <>-, -• .IL ...... '" .., • -u• u DU'" • "'00- :>:>.., OlOves are a combination of the moves of other standard • ,.",• -•"" • - .. • ""''''''' , ...... '" _0..• >~O"''' •• u >_0""'0' z z '" '" ...... > The idea of studying all variations of chess was developed by chess pieces. For example, the queen's move is a composite -. % ...... "' ...... "''" ... ..,z .. •.. o _ Ceo ...... CION'" .... >-,..'" ... . Henry Tate of Melbourne, Australia in 1914. Tate coined the of the rook's and bishop's moves. The Empress' moves are a - .. ':z:zo ... •• C»... o ..... c ...... ozoo"' co: O. -U_,.- ... ·• -• u- ...... "'zo...... -u_ name fairy chess. The classic books on fairy chess were composite of the rook's and the knight's, while the Princess' ...... "'''''''00 ... .",,,,,,,, · ~ ...... ",,,,. 00 ...... ,.., )( .. written by T.R. Dawson. Dover has printed five of these under are a composite of the knight's and the bishop's. 00 0 .. - OOCIO ""..... "' ...... 00.. • 0·· • • - •0·· • ...... "' ... "" ... the single title Five Qassics of Fairy ClIeu. • •0·· •< U~ .... •< u ... ", .. •< "' :>...... "'''' 0- ...... u_ IL ... "" .. '" In addi tion to changing the moves of pieces it is also possible u COU", ... u • u 0"'''00", ... OU OeO_ • 0:>":0_0 ... "'''' .­ .-­ o .-- '" ...... '" C) - - -• - Dawson distinguishes a nwnber of different types of chess· to change the shape of the chess board. T.R. Dawson presents U... "'__ g ...... "'...... Z ••_...... -• U __ 0 00",,,,,,,,,, .... ,,, ..... :c'" ..... z ...... , . "'0'" o .. .a:::.., '" u. like pieces. He calls one group leapers since they can leap a few complex chess puzzles on modified boards using ordi· .. '" - , :.:...... '" "-­ •• 0 •• 0 -..,0-­ -• -• -• ...... "''''.... '" ...... , "' ... of its own pieces. More generally, leaper's moves can be de­ • "'0"' ... _co: ...... , .. -• ••"' ...... - -...... -• "' .... 0 .. co:w > .. 0_ > 0_ > .... "' ..... 00 ...... o . scribed by the coordinates (m, n) where III is a number indica­ @ co: ...... ' )( • o. •CI<)-,.._ o. • • - .. ~,..­ - - ting vertical moves following the lateral moves. _ 0 % e_ .. w ..0 "''''''' ... .>-0 •• • ...... • C> "''''Z..,...... 0 • _ -• ...... "''''' - ...... "' ... -• ...... '" .-.. 8 • , ... ", ...... ",,,, ... .., • . • :>w ... ",,,, .. , •• o •• A knight is a (2,1) or (1,2) leaper. Leapers with greater range • 1;: ...... • 0 .. :> ...... ,--,.. o 1:"'''''''...... o "''''ww- o "''''_",'''0 @ o - o o x ... "' ...... would be (3,3), (2,4), etc. Even more powerful leapers would ", ... 00.... -. ",woO.... "''''''' .... "'''' ••• ,..,...... )-,...... _- Revolver Practice . »­ be described in the following way: (x,y) where x ranges from -% -- -• • •• • -• _0 0 • XX • • white to move, mate in 21 ,-- ,-- I to 5 and y ranges from 1 10 5. A leaper wilh the character· • • • •< • •< While to move, _0 _0 -• o. • o. -• istics (x, y) where x and y can take any value from I to 7 • -.< • .< • •• male in 3 .<". could move to any square on a standard chess board at any time. A very powerful creature! It is also possible to change the rules of chess. Dawson caUs these changes "limitations" and states that "In my classified © 1980, by Herberl Kohl collection of fairy problems I have systematically analyzed

MARCH·APRIL 1980 ,. RECREATIONAL COMPUTING " the more obvious types of limitation in 10,000 classes." ~ ~ Some limitations are 2 queens .. 50 1 queen .. 25 1 rook " 7 3 rooks" 21 1. Captureless chess-the object of both players is to prevent 1 knighl " 3 2 bishop$" 10 capture 60 4 pawns " 4 2. Checkless chess l!li BAC~ISSUE§ 3. Self-mating-the goal is to be the first to mate your own king. Each player sets up his side and the game commences. Of 4. Helpmates-both players work together to mate either course there can be interesting limitations on how the game black or white king, and they also collaborate on ways to is set up. The players may PCC NEWSPAPERS avoid the mate. a) take turns placing their pieces on the board, All '2 'VIIi/lib/II btlck i$$ulII of PEOPLE'S COMPUTER COM· 1977-People's Computers I can imagine other limitations. For example, it is possible to 0< PANY NEWSPAPER for onfy $15. Over 1/3 off r.gufar price. give numerical values to all the pieces and give a certain b) decide how their pieces 8re to be set up, draw a diagram #27 M.y·Jun. 1977 Grlj)hies, CompuU!rs & Copyrlghl Laws, number of points to each player and let him choose his pieces. indicating their choices and then place all pieces on the #3 Mey-June 1973 ZINGO/"Going to Bid"/How to Buy an PILOT & Ti ny BASIC, Home CompUllrs for Beginners, He sets them up in any way he desires on the first two ranks board. This is similar to the simultaneous move system Edusynem/BASIC MUSIC/CHOMP. $2.00 Women & Compute'"'. S2.50 of each side of the board. For example: used in some st rategy wargames. #10 July-Aug 1974 A Fanl1lsy of Future Forms/Low·Cost #28 July·August 1977 Heathkit's 8080 & LSI-11, 00-11- Home School Microprocessor Systems/INCHWORM/ Yourself CAt, Robot PETs. $2.50 MAZE/Analysis of TUSilr/CompuU!r IIlIleracy Problem #29 Sept·Oct 1977 Computer Networks, The $595 PET, Quee'" 25 It is probably possible to modify existing chess programs so by Pel.r Lykos. $2.00 More Tiny Langutgls. $2.50 Bishop 5 that fairy chess versions can be attempted. The following #13 hn·F.b 1975 Build your own BASIC/Mysterioul RND/ #30 Nov-Dec 1977 Oz Graphics, Bio·feedl»ck & Micros, K,.,ighlJ questions might be considered: More INCHWOAM/Computers & Art/BIOSIN Son of Our PET's First Steps. $2.50 Rook 7 H.rdw.re. $2.00 Pawn 1 (I) How can boards be modified and the number of pieces #18 Novo ·Dec 1975 NUMBERfTiny BAStC/Analog 10 Digit.1 1978-People's Computer. reduced so that many different variations can be tested in ConVl,",ion/Minuet in G Mljor. $2.00 Each player starts with the king placed on the usual square. order to discover challenging games? (2) What are the cri­ #19 J.n- Flb 1976 Space G.mesfTiny BASIC Soioworks/ #31 J.n·F,b 1978 Robots, Video Discs, PET Update & Pro­ He also has 60 points and can use those points to choose teria fo r challengi ng ga mes? (3) What interesting goals can be OIODLE/STTR/Mor. Music. $2.00 grams, PASCAL & COMA L. $2.50 any combination of pieces adding up to sixty_ For example, set up for game variations? (4) Is it possible to pla ya game #20 Mlr·Apr 1976 GiMTles for Ihe Pocket Ctlicuillor/ #32 Mlrch-Apr 1978 Epic CompuU!r Games, TA S·SO Review, in one game the two sides can choose as follows: that results in both players ending with no legitimate move SQUAR ES/M.k. B.li,1/'II Computtrs/STRTAK/Hunling­ Micros for the Handicapped. $2.50 (such a game might be called Traffic Jam)? (5) Is it possible to ton Computtr Project. $2.00 #34 July -AU1I 1978 Computer Whiz Kid" Public Access to play so that pieces have magic powers of appearing at different #21 M.y-June 1976 Biofeedback!POUNCE/'WI're Building Computers, Man·made Minds. $2.50 times during the game or control not only their own moves Our Own Computer"/Progremmer's Toolbox/ CCCfTV as #35 Sept·OCI 1978 Computer & Museurm, KinQCIom, APL, but also those of other pieces? The possibilities are greater Termin.I.,.,d Game Center. $2.00 . Sorcerer of Exidy. $2.50 #22 JuIY ' A~ 1976 Low Con Software{Tiny BAS IC, Tiny than Dawson's 10,000 li mitations, and it would be interesting #36 Nov-Dec 1978 The Allurn of the Dragonl, APL, Ani· Tr,k/Your Brain is. HologrllTl. $2.00 m.ted Games for TRS·80. $3.00 thw ~lication to see what you readers can come up With. #23 Sept-Oct 1976 Dungeons & Dragons/HATS/One on One! PLANETSfThe PositiVI of Power Thinking. $2.00 1979-Recreational Computing is available in For the readen who are interested in more infonnation on #24 Nov -Dec '976· STORY!SNAKE/More Build Your Own Fairy Oless, there is all excellent section in Martin Gardner's Computers/Introducing PILOT/FAOGS. $2.00 #37 "-n·Feb 1979 Arliliciat Intelligence, A F.ntely Jules microform book, New Mathematical Diversions From Scientific ~25 J.n-F.b 1977 REVERSE/Aobots{Tiny PILOT/Spac. & Verne, TRS·BO Personel Software, The Apple COrpl is American, New York: Simoll &: Schuster, pages 74· 75,1966. CompuU!rs/CooVl,",ationlll Programming. $2.00 with Us . $3.00 Within that and earlier sections of the above, Mr. Gardner #28 M.r-Apr 1977 Z·80 P1 LOT/6502 Assembly Program· #38 Mareh -Apr 1979 Artilici.1 Intglligence, Ctllcul.tor Corn­ discusses many van·ations of chess and chess-like games. He mlngfTiny SASIC for B.glnners. $2.00 ics, Chess Reconsidered, LOri of the AinlJl. $3.00 #39 May-June 1979 Now Petgr Can Aeed, Game of Life, mentions Edgar Rice Burroughs' game of Martian Chess as Only the issues listed above are available. Price includes TAS·80 Programs, Detective Game Program. $3.00 chronicled in The Chessman of Mars. Mr. Gardner also points iss ue, handling, and shipment by second class or foreign #40 July·Aug 1979 Compu1ertown, U.S.A.!, CryP1llrilhms, the reader to the science-fiction novel The Fairy Chessman, surface mail. Wi thin the U.S., please allow 6·9 weeks to OP Games Playing, FORTE MUlic Programming by Lewis Padgett. In this last book, the protagonist success­ process your order second class. Outside the U.S., Lanl/UltgII. $3.00 fully willS a war because of his experiences with the game of surfacemail can take 2- 4 months. For faster service #41 Sept·Oct 1979 ArChitecture of Multi·Player Gemes, Fairy O,ess. within the U.S. we'll ship UPS if you add $1.00 for 1-2 MUlic on the Tt 99/4, Color Gr.phics on the Allrl. $3.00 issues and $.50 for each issue thereafter. We need a #42 Nov ·Dec 1979 Shogl Games, Creating Ne w Cheracters on In tile bibliography section of Diversions, there is a short list street address, not a PO Box. Outside the U.S. , add the Ti 99/4, Music for Allri, TRS·80 & PET. $3.00 Please send me additional information. of references to chess variation games, including this one on $l.50per issue requested for airmail shipment. University Microfilms International Fairy Chess: 300 North Zeeb Road 18 Bedford Row Dept. P.A. Dept. P.R. C71eQ Ecctntricitief. Major George Hope Verney. London: Longmans, Cirele your choices. I . nclote • _ !U.S. check Of money order) fonlign add Ann Arbor, MI48106 London, We1 R 4EJ Green and Co., 1885. The best reference in English. '.50PHinue, (mit include. pOttage ~ hMldlng). U.S.A. England "Fairy Chess." Maurice Kraitchik in Mathematical Recre4tions, pages 3 10 13 18 " 20 21 22 23 24 25 28 27 28 29 30 Name ______276-279. Dover, 1953. 31 32 34 as 38 37 38 39 40 41 42 Pie... nd In this form or facsim ile to: Peopt,'s CompUttr Co., "Variations on Chess." V. R. Parton in The New Scientist (an English 1263 EI CImino Real, Box 0, Me nlo Park CA 9402&. Institution weekly), page 607. May 27, 1965. PI ... ttnd m. the issuft clreled. MvNWM ______Street ______Les Jeux d"Echecs Non Ortltodoxes. Joseph Boyer. Published by the City ______YH, .nd me th -28 for only "51 author,Paris, 1951. o A~ou ______Stale ______ZlO _____ NOln'eaux Jeux d'Echecr NOli Orthodoxes.Joseph Boyer. Published by the aulhor, Paris, 1954. o t'm ordlring'50 or more .nd I _nl. 10% ditcounll City/Sttte/Zip ______Les Jeux de Domes NOli Orthodo.'ces. Joseph Boyer. Published by the author, Paris, 1956.

16 RECA EATIONAL COMPUTI NG MAACH·APRIL 1980 17 COMMENTS FROM NINE HEX (JACK CREHORE)

Well, fans and puzzlers! Your letters are marvelous-keep Recreational Computing's introductory pledge was to help in them coming. Your "educated guessing" shows a rare talent. education. We have to give some step-by-step encouragement (,ypta hml Nobody soilled (without a hint) Puzzle 11 in the last issue of to beginners. Re. Everyone insisted 0 could be zero, thus indicating either BY JOHN DAVENPORT CREHORE (Nine Hex) a typing error or a mathematical irrationality. There is no Puzzle 10 was a bit easy for adepts. We will make the adept error! Two of the exponents are positively identifiable by category more of a challenge-beginning with this issue. logic. One factor identifies both, its digit and exponent. There Jack Crehore (Nine Hex) is on the move. He now live:; in Solutions for the 1979 Cryprarithms, through the Sept.-Ocr. is a letter that is zero, but it is not D. D might be a one. Try David Hubbard: Your contribution in RC 41 drew comment Virginia. To speed up the process of getting your solutions to issue, appeared in the Letters section of the Jan.-Feb. 1980 that! The typography may have thrown some of you: two from Polarbaer and others who found the starter of triple T him, we want you puzzlers to send your solutions to: Nine RC. Check there to see how we/( your solutions matched up letters without a space stood for a two-digit number. Re· good, as r did too. Send more! We can't promise comments on Hex, P.O. Box 96, Charlotte Court House, VA 23923. with Jack's for last year's puzzles. -RZ member: the puzzle was for geniuses! each submission. RC cannot check the accuracy of contributions; so, Puzzlers Beware! It's all fun though. Con­ NEW PUZZLES Here are some tutorial hints for Puzzle 17 on the previous tributors, welcome! Puzzle 17 (Novices) Puzzle 19 (Geniuses) page; In column 10, M can't be anything but one. This gives the result in column 9, also a one, and indicates that the Y THE KID: Your letters are so goodl Read about Pljzzles 11 Ll s t No, list No. 2 in column 8 is either two or three. and 12 above. Nobody got No. 11; 12 had a typo error, there YMA HKM FJT is no need for the sign ! Now you've given me the chance to TMN HMY JMT RB RB For column 9, M is one; Y is two or three-how big is T? remind everyone that in Puzzledom "A!I's fair in Jove and M MYT KJA NTF TU UT T must be either nine or eight. Now the fun begins. Think fast! wad" Common courtesy would require "not base 10" NR NR perhaps; but the use of twelve letters would relieve the need. Hints: Read samples and examples. Also, look at hints in KU KU In column 7, A+N results in T. The sum of two different digits -Nine Hex the Comments from Nine Hex on the next page . KUK RKM is at most 17 (9+8). but T is either 9 or 8 so A+N is less than 17 (in fact, less than 10). and there is no carry. So, Y is a two I Hints: An adding machine list with an error-corrected with Back to column 9. If Y is a two, T is a nine. Now look at Puzzle 18 (Adepts) the rule of nines. Turn on your logic for this one. column 1. How much is F? F is an eight. There is a carry to column 2. J turns out to be a seven. Now from column 1 to Puzzle 20 (Computers) BU column 10 each position is solvable with letter values found in MHU_/cRTBK MANBTK the previous columns. How's that for fun? CBMT UAUMTK CCBK Polarbaer: Smart research by you for another modulus for NAUYTK KABN Computer Puzzle 12! Error TUL for TAL frustrated you and NAWBTK URN the others. You discovered the error by analysis. Great work!! CAWMTB Crazyman: Hints: Work with zero, nine, a squared digit, and two digits Hints: Simple computer additions-have your machine chew You also did a beautiful research piece on Number 12. taken as a pair. on this one for a while. Puzzles 9 and 10 you belittled. I must explain.

~ •••• x i"'~~"'~~~~~.",~-~~o.o",~-OW~"~oooo~.o",o - _ SAMPLES AND EXAMPLES >- ~ ..... Q o!· ••••• ~ z •" • 0 ,., N"" _ •• I I · • "• ~ -·"." • ~ "! • 0~ • c ~ • " 0" , [Q ~ ;. .. :§ 00 '.~ u. ~ o " ,., :;l " ~ • z:;' E&S e,> e N • .Q" .- ..><- ""ai u.: N ~>';::;;;u!! • 0 00 "0 o.!! " ou '40::':0"- 1-- = :::;: N ~, M <. • :;• • • tt.-.x· , :; <• .." ", ~ • • ",,,"ooQo_N • • • • • - N"'W~"'''''OOQoO _ ''',,",~~''',,"ooQoO _ ''''''W~'''''''ooQoO_''' C- Z _NN"',,",'" ------"''''''''''''' "'''''''''' "''''''''''

18 RECREATIONAL COMPUTING MARCH·APRIL 1980 19 -

Solutions to tlus problem will be useful in many future problems. Solve tltis one, then tuck the solution away where I PROBLEM # 7 GAMEMASTER'S DICE you can find it and apply to future problems in the world of , fantasy role playing games. If you play Dungeons alld Dragol/S, Runequest, Tunnels alld Trolls or Chivalry alld Sorcery. you know about gamemaster's ~A(?"'f?".>te> # > 1 > d>ct dice. They are tetrahedrons, hexahedrons (cubes), octahe­ PROBLEM # 8 RECURSIVE NUMBER PATTERNS drons, dodecahedrons and icosahedrons. If you are a teacher and haven't heard about the above games, ask your students Each of the following number pal!erns is a sequence of I about them. In the unlikely event that they can't fill you in, integers. read "What Is All This Stuff? Beginner's Guide to Fantasy Role-Playing" in the May-June 1979 issue of RC PROGRAMMING PR OBLEMS (1) 1.2.3, .. . (2)2.5,8, .. (3)2.4,8, .. . (4) 3. 12,48, ... BY BOB A LBRECHT AND DON ALBERS The world of fantasy role playing games uses the following (5) I, II. III, ... (6) 9, 99, 999,. dice to simula te events in the nonreal world. (7) 43, 433, 4333, .. . (8) 32, 332, 3332, . (9) 34, 334, 3334, .. . (10) 12, 102, 1002, ... D4 Telrahedron, numbered I through 4. D6 Cube, numbered I thrOUgh 6. Each sequence is of the form: sl' s2,s3" .. PROBLEM # 5 FAST PRIME NUMBER TESTER You may not use arrays. Especially you may not store a OS Octahedron, numbered I through S. Each sequence can be defined recursively, as follows. bunch of primes, then use them as divisors to test NPT. 010 Icosahedron. numbered I through 10, with each number Do this one. You will need the solution in future programming Really! That's just brute force; eventually you will run appearing twice. 51 is given 012 Dodecahedron, numbered I through 12. problems. Write a subroutine to determine whether a positive out of memory. We can always pick a number too big to sk = f(sk.l) for k = 2, 3,4, ... 020 ICtl$ailedron, numbered I Ihrough 20. integer NPT is a prime number. be tested by a bunch of primes stored in memory, espe­ 0100 Two icosahedrons. Each die is numbered 0 through 9. One For example, cially if we remove the 999999 restriction in line 210. If NPT is not a prime number, set PPT '" 0 and sct FPT die is the tens digit; the other is the ones digit. A roll of 00 is interpreted as 100. This pair of dice is used to roll percent­ (2) 51=2 5k=5\(.1+3 rork=2,3,4,. equal to a factor of NPT otlier rholl 1 or NPT (J < FPT< Now for some good news! You may assume, in your subrou· ages from I 10 100. (6) sl=9 Sk=105k_I+9 f01k:2,3,4, .. NPT). then RETURN. tine, that NPT has been checked out and is a legitimate 03 A roll of a D6 with results as follows: Customer. You may assume thai NPT is a positive integer in lor2"'1,30r4=2,50r6"'3 In fact, every sequence above (and many others!) can be If NPT is a prime number. set PPT '" I and set FPT = I, the range 1 10999999. If your BASIC can handle more than dermed as follows. then RETURN. six digits, modify line 220 of our tryout program and go for In fantasy role playing games, events are sometimes deter­ 51 is given. more. mined by rolling 2 or more of the same type of dice. Your subroutine has onc input (NPT) and two outputs (PPT 5k= r(sk'i,m,a.b) fork=2.3,4, ... where m, a, and b arc constants. and FPT). 306 Roll three six-sided dice (cubes). The result of the rolls is !.he sum of the individual diCtl (3 to 18). Sequences (5) through (10), and many similar sequences, -PPT = 0 if NPT is not prime 508 Roll 5 eight·sided dice (octahedrons). The possible results appear in elementary school textbooks, They all produce 1 if NPT is prime. range from 5 to 40. PROBLEM 6 SUM OF DtVISORS interesting paltems when each term of the sequence is NPT _ Your subroutine # squared. -FPT = Factor between I and We want a program to simulate garnemasler's dice, as described Below is a dreadfully slow progranl LO compute and print the NPT if NPT is not above. Here is a sample RUN of the program that we have in sum of the divisors of a positive integer. This program is in Now to our problem. Complete the following program to com· prime. mind. Microsoft™ BASIC for the TRS-80. pute and show the first N tenns of a sequence. The program I if NPT is prime first asks for the number of tenns desired (N), the ftrst tenn ROLL? 06 We ask for one sb:-sidcd die 100 REM"*PROBLEM #6 SUM OF DIVISORS (S) and the constants M, A and B which define the sequence. If you write your subroutine in Microson™ BASIC, use the IIOCLS 3 The computer roUs a 3. ROLL? -- We for 3 six-sided dire following program to lest it. 306 ask 100 REMu·PROBLEM #8 NUMBER PATTERNS 200 REM*"GET A POS ITIVE INTEGER. N I' Good roU! ROLL? 2012 -- We ask for 2 twelve·sided dice. 110 REM"*RECREATIONAL COMPUTING, MAR/APRIL 1980 100 REMo"PROBLEM NO.5 PRIME NUMBER TESTER 210 PR INT: tNPUT "POSITIVE INTEGER, PLEASE";N 13 120 REM.·.VARIABLES 110 REM"'RECREATtONAL COMPU TING, MAR-APR 1980 220IFN<>INT(N)OR N<=OTHEN 210 -- 120 REM"· N = NUMBER OF SEQUENCE NUMBERS TO SHOW ROLL? 0100 We ask for percentage dice. 100 130 REM"· S '" FIRST NUMBER IN SEQUENCE 200 REM"'GET AN INTEGER, 1 TO 999999 300 REM·*·COMPUTE SUM OF DIVISORS OF N Hmmm ... they came up 0,0. ROLL? 306 -- 140 REMU. SK = NEXT NUMBER IN SEQUENCE 210 PRINT : INPUT "I NTEGER , PLEASE (I TO 999999)"; N 310SUM=0 Computer ignores spaces. II 150 REM*-- M, A, B = CONSTANTS USEO TO COMPUTE NEXT 220 IF N <> INT/N) OR N< ' OR N>999999 TH EN 210 320 FOR D= I TON -- NUMBER RO LL? #3%7 330 IF N/D = INT (N/D) THEN SUM = SUM + 0 - Complete garbage! I OONT UNOERSTAND 300 REM···TELL WHETI'iER N IS PRIME OR NOT PRIME 340 NEXT D 200 REM .... ENTER NUMBERS TO OEFINE SEQUENCE ROLL? #309ffi 310 NPT .. N : GOS UB 510 210 PRINT:PRINT I ASSUME YOU MEANT 306"'- 320 IF PPT " 1 PRINT N " 15 A PRIME NUMBER." 500 REM·"PRINT SUM OF DIVISORS. GO BACK FOR NEW N Clever Ctlmputer! II 220 INPUT "HOW MANY TERMS"; N 330 IF PPT .. 0 PRINT N "IS NOT A PRIME NUMBER:' FPT " IS A 510 PRINT "SUM OF DlVISORS =" SUM ROLL? 207 230 INPUT "FIRST TERM"; S FACTOR:' 520 GOTO 210 - These aren't on OUT tisl of dice. I OON'THAVEA 07 240 INPUT "M '" "; M 4OOREM···GO TO 'GET AN INTEGER' ROLL1 004 Roll zero dice? 250 INPUT "A '" "; A 260 INPUT "B = "; B 410 GO TO 210 TIle above program is OK for smal l positive integer values o Of course! 500 REM· · · YOUR SUBROUTINE /CALLED IN LINE 310) of N but, alas, seems to take forever for larger values. 610 and 50 on We hope you get the idea. Any reasonable request for dice 300 REMu·INITIALIZE: START KTH TERM (SK) AT FIRST TERM (5) Your job: Rewrite lines 310 on -make the program fast. Send should be accepted and the computer should "roll the dice" 310S/("S Wah ! Before you plunge in, we want to add two small con­ your solutions. Later, we might publish hints(send some hints) and print the result. Put yourself in Ihe place of the game· straiJm. on how to build a fast sum of divisors program. Hmmm ... is master. He or she is concentrating on running the garne; the 400 REM***COMPUTE ANO SHOW N NUMBERS OF SEQUENCE it merely coincidence that this is problem number 6? computer is waiting palien!ly to help. The computer should 410CLS We want your subroutine to be If,t? 5~ provide help as helpfully as possible. 420FORK= ITON 20 RECREATIONAL COMPUTING MARCH·APR IL '980 " 430 PRINT SIC 10 CLEAR SCREEN Contractions and hyphenated words are OK. 440SK: ______20 YEAR - _ 30 PRINT YEAR 40 END Your program should accept strings which include: 450 NEXT K PROBLEM # 13 SCRABBLED PRIME NUMBERS Wait ! There are a few rules. Letters, A through Z 500 REM"·CO HACK FOR A NEW SEQUENCE Apostrophes (') SI OGOT02 10 (I) Your BASIC expression must include every nonzero Hyphens ( -) In the game of SC RAB BLE, each letter has a number score, as digit:123456789 Spaces shown below. Also, please show the values of S, M, A, and B wltich you (2) Every nonzero digit must appear once, and only once, in M • would enter for each sequence (I) through (10). line 20. A 1 G 2 3 S Y 4 This problem is the beginning of a bunch of problems. So, 3 H 4 N • 1 T Z 10 (3) You may not add addilional lines to the program. do solve this one. If you want more infonnation, all you have e" • 3 1 0 • 1 U • SEQUENCE s M A B It can be done. Here are some examples. to do is ASC II us (Oops! Sorry about that) by se nding a D • 2 P 3 V 4 (I) E 1 K ,• Q W· 4 (2) Self-Addressed Stamped En velope (SASE) to the DRAGONS, I. t t F • 4 L R • 1 X • B (3) 20 YEAR"4 St9 (8+3)t(7+1)/(6+2) P.O . Box 3 10 , Menlo Park, CA 94025. t (4) 20 YEAR-4S (89-67)t(3+1) / 2 A word score is the sum of the scores of the letters in the 20 YEAR- 198 t (7 + 3) t (4+5 -2-6) Dra90nsmoke (5) word. Fm example, PLAY worth 10 points ,nd (6) KANGAROO is worth 13 points. " (7) The above examples are quite mundane. Dwellers of Xanth . THIRTEEN is worth 99 paints. Are there numbers whose (8) and other magical places will use the full power of BASIC (or English name has a word's worth equal to the number? If so, Next, we bring you the first 25 prime nwnbers: (9) even PASCAL) to generate the number 1980. what is the smalle st such number? (10) 2 3 5 7 11 13 17 19 23 29 • AHA is worth to points, AHA is a palindrome, but . . . 31 37 41 41 53 6J 67 71 sigh ... 10 is not a palindrome. Are there words which are 7) 79 83 "89 97 " palindromes for which the word's worth is also a palindrome? PROBLEM # 9 TRICKY AREA NO.1 PROBLEM # 11 WORD'S WORTH NUMBER ONE Hmmm ... if not in base to, perhaps in some ot her base. See Perhaps you have already guessed the problem. For each of the Problem # 2 Palindrome Numerals in Re, Jan/Feb 1980, first 25 prinle numbers, find a word for which the word score The problem about Newett Awl and the Goat (Re, July ­ This is the first in a se ries of problems about computing page 57. is equal to the prime number. You may use any single un· August 1979) reminded us of thls problem, which first numbers from words. For the first few problems, we assign abbreviated word in Websters Third New "lIen/ationaJ Die-­ appeared in Adl'allced Problems for Computer Mathematics, number scores to the letter A through Z, as folJows: (io/wry (Unabridged) even if it is not acceptable in the game of published by Digital Equipment Corporation. If you have solved Problem # 12 Scrabble Scores, you may A • 1 G " 7 M • 13 S Y 25 PROBLEM # 12 SCRABBLE SCORES Write a program to compute the area of the il/tersectiOIl of B 2 H 8 N • 14 T 2.I' Z 26 wish to modify your program to help you in this problem. two circles, given the radius of each circle and the distance e 3 , 0 • 15 U • 21 In the game of SCRABBLE, each letter has a number score, as D • 4 P 16 V between the cen ters of the two circles. 10 • 22 shown below. E 5 K 11 Q 17 W· 23 F • 6 L 12 R • 18 X • 24 PROBLEM # 14 EXOTIC NAMES IN FANTASY Here are some possibilities. A • 1 G • 2 M 3 S Y • 4 H • Z • ADVENTURE LAND A word 's worth is its numerical value, obtained by adding the B 3 4 N T I. 3 1 0 1 U '2 values of the letters in the word. For example, HOBBIT is e • Intersection is empty. D 2 P 3 V 4 Suppose you are creati ng a fantasy adventure such as a DUIl­ worth 56 points, DRAGON is worth 59 points and WIZARD is E K •5 Q • 10 W· 4 geons and Dragolls. Rlllle(llIesf. or TUllnels and Trolls. You d Area " 0 worth 8 1 points. F '" 4 L • R • 1 X • 8 may wish to use unusual names for your heroes, wizards, monsters and other creatures. You could, of course, borrow Write a program to compute a word's worth. A RUN of your A word score is the sum of the scores of the leiters in the names from fantasy adventure books such as Lord of the Circle #2 is entirely inside program might look like this: circle # I. Area is Ima of word. For example, HOBBIT is worth 13 points and WIZARD Rings. But , perha ps you prefer to invent your own. circle #2. is worth 19 points. YOUR WORD? WIZARD Wh y not use your comput er to help you invent names? Sounds YOUR WORD IS WORTH 81 PO INTS Write a program to compute the score for a word , or string of OK. but how do we get the computer to print names that letters, using the letter scores shown above. A RUN of you r YOUR WORD? ISN7 are pronounceable (or almost so) and seem to be unusual, Area" Shaded area program might look like this: YOUR WORD IS WORTH 62 POINTS exotic or even fantastic?

YOUR WORD? FLIP-FLOP YOUR WORD? HOBBIT That's the problem. Write a program to genera te and print or YOUR WORD IS WORTH 92 POINTS YOUR SCORE IS ] 3 display random names that migh t be used in a fantasy or Under control of your program, the com puter should ask science I1ction game or story. YOUR WORD? W]ZARD for values ofr , r , and d, then compute and print the area. YOUR WORD? ABCD 1 2 YOUR SCORE]S ]9 YOUR WORD IS WORTH 10 POINTS Yes, this does sound more like a project than a problem. Good! We hope you will project your best efforts into this ~>rf>f'- 1> 1>rt YOUR WORD? 3#AB%tZ YO UR WORD? 3#AB% problem ... er, project ... and send us some cunningly I DONi UNDERSTAND I DONi UNDERSTAND PROBLEM # 10 1980 contrived programs to generate fantastic names. Let 's see now YOUR WORD? and so on ... And so on. The com puter should accept any "word" consist­ - how many orcs would have to type fo r how many years to This one is easy. Complete line 20 in the following BASIC ing of a string of letters, even if it is not a real dictionary word, write Lord of tile Rings? program so that the computer will print the number of this Your progranl should compute the score, or worth, of any but reject any string containing characters other than the year, 1980 . word or even any string of letters, even if it isn't a word. letters A th rough Z.

22 RECREATIONAL COMPUTING MARCH·APRIL 1980 23 ------

From the Gourmet Math Kitchens of San Francisco I ntraducing Let's do a very simple example. Below is a chart, with corresponding INPUTS and OUTPUTS. Fill in the miSS ing OUTPUTS and state the rule (that is, the Delicious Function) which causes each input to be converted into its corresponding output: l)eliciou~ function~ 81 OF # 1 In your own words, write what you think the rule for tNPUTS - j-.OUTPUTS OF #1 is. BY RITA LlFF LEVINSON & TEO KAHN 2 2 With special thanks to Diane Resek, Dept. of Mathematics, S. F. State University, and I 4 2 From Nearby Berkeley 37 2 y® A Special Guest Appearance by 1 2 , fill The Lawrence Hall of Sc ience 150 -7 - ..-: rher e FUNCTION MACHINE -- ;. 0 ....

RC welcomes you to the wonderful world of Delicious Functions! Here you will find delights for the mind, delicacies which defy description, pleasant pastries for the problem· solving palale ... all made in the secret depths of a Magical, Mystery OF # I is an example of the "constant function," because no matter what we give the macltine for input, it always gives us Function MacMnel the same number (2) for output.

And WHAT, you may ask. is a Delicious Function? Or, for that matter, what is a Function Machine? Pretend there isa special machine, painted in spectacular colors, which has a space for INPUTS and a space for OUTPUTS. Now, let's try some others. These won't be quite so easy, so look for patterns!

OF #2 INPUT In your own words, write what you think the rule for INPUTS OUTPUTS OF#2is ~ 5 9 ? ~ 2 3 OUTPU T 25 49 -3 -7 • 100 199 30 (Use your irruzgina/ion and add your own features to this simple Function Machine. Send your designs to Recreational Com­ -6 4 puting and we 71 publish the best of them!)

Once turned on, our Function Machine waits for INPUTS, which it then takes in and converts-by means of some unkown Delicious function (Rule)-into mind-watering OUTPUTS! Ha vi ng carefuHy sealed our Function Machine shut, we must use our minds to discover what the Delicious Function is, since we cannot see what goes on inside (Let's hope our machine never 0" how .bout this one? needs repair)! OF # 3 So, what we have in simple form is: What's the rule for OF # 3? IN PUTS OUTPUTS Machine applies 0 1 1 1 This is starting to Iook like . .. 2 1 Wh oops! Don't g uess too soon! Unknown - 1 REJECT! I--- (This input can't be accepted by OF # 3) 30 2 IN PUTS go in DELI CIOUS OUTPUTS come out FUNCT ION 125 3 What's mv pattern?0 99 2 ) ~ 375 --- 10 --- 1234 --- .. . AND ...

© 1919, by Rita Liff Levinson and Ted M. Kahn. All rights reserved.

24 RECREATIONAL COMPUTING MARCH·APRIL 1980 25 TH E FU NCTION MACHINE IN ACTION Note that in Delicious Function 11 3, "- I" caused the machine some difficulty. Not all inputs will work for all functions! Do you understand what happened? Pictures courtesy of Univt!rsity of California Regents, © 1979. Now let's look at a slightly differen t kind of funct ion (or is it really different).

OF # 4 Yuml HI NT: l ook at OF # 3 ... Can you see a similarity? IN OUT

"'t 3 4 sal"'"t 4 green 5 fun 3 computer 8 (wow) jump ,h, think

And now, two for you to think about for next time ... People Sampling a Few OF £ 5 (Hint: It's similar to DF #4, but with a twist !) AN D OF # 6 HMM ... Delicious Functions IN OUT IN OUT

cherish 10 strange , What glad 4 place , do 00.,. 4 candy d _" these village 10 flake k father h outputs green 6 have glove 6 another h govern , sing 4 G common?" w"' 2 girl I to wash h program bit :EJEC blade Out comes a 21 think ___ Why? winter What's the Rule? spring ---- S summer . __ . In goes a 11 TEO M. KAHN fall .... RITA LlFF LEVINSON Ted M. Kahn has been interested in educational alchemy and mysticism for nearly a decade, having replaced Pl ease submit your own delicious functions and next time, we will begin to publish programs in BASIC for different micro­ Rita Uff Levinson has taught at Lawrence Hall of "earth, air, fire, and water" with "kids, games, computers so you can program your own . Science, Mills College, and San Francisco State computers, and creativity" (in no particular order). He University. She has conducted mathematics and has worked in the Computer Education Project at the computer workshops fo r teachers. She is especially lawrence Hall of Science, lived in the sa nds and hills of interested in motivating and working with math and the Middle East fOf . two years, experienced a war, six DELICIOUS FUNCTION ANSWERS computer avoiders. different jobs (one for each day of the week. with one I i1no aSall16u!Jn6!1 unj ar.eH day of rest), and done graduate studies in the jaW!llXaU SJaM$Ue asalll Rita is currently a software engineer with T AK psychology of creative thinking and problem-solving. 'pJOM 40ea U! SJanaiiO JaqwnN ."'s Components in Burlingame, CA, She is an active For the past three years, he has been in residence with organizer of conferences that introduce women to the learning Research Group at Xerox Palo Aho '0 < x aJallM 'x u! Sl!6!p 10 JaqwnN C• science related careers. On March 15,1980, through the Research Center where he has been researching the use 'Jaqwnu Indu! S! x ,!JallM 'l - Xl l Math/Science Network, 15 conferences will be held of computer games to teach complex proolem solving nationwide. The Math/Science Network started in the 31nH skills. He is currently serving as Educational Consultant San Francisco Bay Area about four years ago, and now for personal computers with the Consumer Marketing has over 500 members. Division of ATARI, Inc,

RECREATIONAL COMPUTING MARCH·APRIL 1980 27 -

The idea for this routine came from Karlin Chlpko's Bingo PT 18: SORTED RANDOM NUMBERS 210 tETC- 0 "Number Calling" program Nov.·Dec. 1979 Re. I designed thl Haw you ever needed several random numben in a game, end 220 FOR I - IT02·B -M numbering of stataments lO that my routine can be typed wanted them to be sorted? Here i. I thort routine thllt wUl 230 LET KS - MIOS9AS),I) right in with Ms. Chepko'li, effectiVlly turning two progrems into 240 LET LS- MIOS (SS, M - B + I, 1) one. like Ms. Chepko's routine, this one it allo written in produce an ordered list of uniform random numbe..,. 250 IF KS- LS THEN LET 0- C + I Level II BASIC and requires less than l K. 10 IlDI TlIISKClUTJNtcn<£UlU"'nwUMfOIIM UllOOM __ UUIG 10)1 260 NEXT I II IlDI ~OI'K>tILOIJg IOiTUY A/IOJAMU I.J.U(lI'IJIUSHlO 10 REM"·WAYNEF.CUMMINGS ... 11 IlDI AS AOII/<:OIiI'VTU 3CI£ItC£ DEtAAtllEtIT kUOIU ('S,"·II) 270 LET C" CIP 12 REM·" LA CROSSE, WI. ... II IlDIlMlW61U111iC111'" I' UK • 280 LET1 -T+C 15 REM"· NOY. 22, 1979 ••• NEXT .~ 290 M 20 CLS: RANDOM: INPlIT"HOW MANY BOARDS DO YOU "100 ...urN ~ GO$lIIIlooo- 300 LET S- lOO·T/BfP The up arrow indiClltM WANT PRINTED"; P JOO _J-lTON 310 PRINT S; '''J{,'' exponentiation. 25 PRINT 'TOUCH 'ENTER' AFTER COPY ING EACH": .I(I(l~ nJNrJ.Z 320 LET1"0 FORX = I TO 1000: NEXT ~~, 100 OOTO-­ 100 330 OOTO 70 30 LS(I) E "B": LS (2) '" "I": LS(3) - "N": LS (4) " "G": 1000 L _O» 340 END 10101 - " LS (5) =0 "0" 1010 aETUat! 35 FOR G" I TO P: CLS: PRlNT: PRINlTAB(3) IUroIFI <_OT1t£ll)IOO 1(110 l_l. Ul(1.at!D)'I 40 FOR K '" 0 TO 60 STEP 15 lOlOl_I·1 Sample Run Comments lOlO Z _ EXP(L) 45 IF K = 0 THEN 50 ELSE PRINTSTRINGS (3,13);: 1100--~ PIlII 100% because of double letter 65 PRI NTTAB (45): PRINT LS (KIIS+I);: NEXT K 1 0.999781 FOR STRINGS ? POOR 3 letter pattern "POO" matches. 70 FORX= 1536OTOl6320STEP 192:FOR Y"XTOX+40: 2 0.803244 45 .3% POKEY,13 1:NEXTY.x 3 0.636599 If B computer b diretwd to search a file looking for a par· ? COOL Still a 3 letter pattern. 75 FORX= 1536OT015400STEP8:FOR Y"XTOX+959 4 0.518174 ticular string of chllllcterJ, a simple tYpographical error will 45.3% STEP64:POKEY ,191:NEXTY.x , 0.505454 c.use the computer to report that no match has been found; , POO Same mat~h, because nonmatching 80 PRINTTAB (50): INPUT A: NEXTG 6 0.31189 even though there was something very close in the file. The 45.3% characters do not count. 7 0.242 318 statement " IF AS· a$ THEN ..... is taken literally bv the ? POLO For questionli on BINGO Boards, Wf'ite to me 81: 3218 Lauder· 8 0.1 49439 computer; aven th, slighten difference is not tolerated. 28.1% Two 2 letter matches, "PO" and dale Ct., La Crosse, WI 54601 . , 4.55302E·3 ? lOOP "OL", do not count as much BY WAYNE F. CUMM IN GS 10 1.11596E·3 BY DENNIS ALLISON Wouldn'! il be better if • computer, finding no exact match, 18.7\\ as one 3 letter match. would report Ih. belr mitch, or the 5 best matches listed in ? PAil order of c::losenen of match? Thll is what the routine ltIunrated 12.5% Only 2 isolated letters. haNl does; It computes 8 similarity index on a scale of 0 thru ? POOL ROOM 100 percent. 10.4% ? MAil ROOM I~------~ I The roulin. is written In Ohio Sciltntific Instruments 8 K BASIC, /.5% I 1111 ,II' I Ve rsion 1, end was run 01'1 II Challenger II system. (The program ? PO/Ol Presence of extra random I I will run, 8S iI, on thtl Apple II with floaring point BASIC, and 14.4% chara~t~r reduces match. I I the PET. Eds.) ? 0000 Repeated letters result I ~nll •• br'.AllfNAL"""." I , 40.6% in unexpectedly high match. I I 10 LETT-O I • - """ YOIl1I. HAIlE, PI.E.U'" I 20 LET p.. 3 OK 19 JNrIJT .u I 30 PRINT "FIRST WORD"; RUN I 29 _ "" THIS GAIlE YOU IIAX£ YOUR OWN AMDW.,", .u 40 INPUT AS FIRST WORD? T. C. O'HA VER 710 HilLSBORO DR. SILVER I :: :r:IATDOYOUWAHfYOURAND'ALTOae,".u I 50 LET A" LEN (AS) SPRING MD . SECOND WORD? TOM O'HAVER 710 HilLS· 60 PRINT "SECOND WORD"; BORO DR. SILVER SPRl NG MD. I ". J\IINT 1"IJIAT SIZE DO YOU WAHf YOIl1I. AllllW.IO U; I 70 INPUT BS 82.9% 75 IF AS - BS THEN PRINT "EXACT MATCH " ? R.D. O'HAVER 710 HILLSBOROUGH RD . SILVER " .....- ~YOlJIlAYEA... CS .. ·.B$ .. -oAf I 80 LET a " LEN(aS) SPRINGS FL. .. JQI1_TOOUlItDOYOUWAHfITTOIE,.AI 90 IFA>a THENLETa=A 10.3% , " .....»$ 100 FORM - I Toa UP.11 ..,_."'W8ATCOLOR BYES 00 YOUWAHT rtTO HA.Yr 110 LET C-O OK 120 FPR I - ITOM BY T.C. O'HAVER lit __ YOU ....VE ..' 130 LET KS" MIDS (AS, B - M + I, I) I4f _.,.,., IIANY LEGS D~';S~~~:';;~1~;:~1::~ 140 LET L$- MID$ (SS,I, I) U9 _" 150 IF KS " LS THEN LET 0- C + 1 PT 17: BINGO BOARDS 18 IQIt..,.,.,YOU ....VEA ·.C$··.D$··'.""'1iIII1";1~1~ 160 NEXT I ~ 170 LETC-CrP Thi, program prints bingo boards on tl'M! TRS-80'1i video SCrllen. ." ..__ DOYOIIWAHfITTOUVI" 180 LETT- T+C If YOU heVl I printer, you ~an changa the program to lin the I" __ 190 NEXT M boards on paper. The current program simply displays the boards .,. __YOII ....VE .. ";C$' ",.IS, "";I",''WI1IH'~'I~'IiI 200 FORM" B+IT02·S -1 on the $Creen. This program does not keep track of each board', U _TllATUVI!S IN .. " as status during the game. Someone out there with a little free :uo fIQIr"Wlll.l.,8Y".u time COUld easily make that modification. (Hint: load a board's © 1979 BV11 PUblications, Inc., Peterborough, NH 03458 U.S.A. ~ END AU ri ghts reserved. Produced by permission. September 1979 numben into a 2-dimansiona! array; change numbe.., to nl98tiVl Byte pages 59-60. when 'called'; check for the 13 possible BingO$ after each ~all.) MARCH·APRIL 28 ~------~1980 29 =

7. N-KNS 16. QxB? 8. a-a Had the computer moved BxN, it would have yielded a greater The computer took this opportunity to castle. Positionally, material gain. The computer thinks that the knight being a ~ ew A lgorithm castling queen-side is preferred in this situation. However, pinned to the pawn prohibits that knight from protecting the we have no castling analysis at this time. White chose to bishop in the event of the capture. castle because it had no better move; it could ftnd no solution to Black's threat of NxB which creates doubled king pawns. 16. R-K I !? Although this could be defended by Q·Q2, it is not necessaril y HUMAN VS. COMPUTE R PA RT V I good to move the queen as far into the open as K3 this earl y This move seems good in the sense that it attacks the knight hess in the game. The bishop itself is not free to move since it is It ~or ~ by relieving the pin. is poor, however, because it replaces II BY DAVID CHELBERG & DAVID WATTERS ~ vilal to the proteclion of the queen pawn. Probably the best the pin with a hurdle. Better perhaps is R-QBI. move in this situation is N -QS. This would look even better if7.were B·QB4. 17. NxN

77le filial lest of (J COmrJliler program for chess is, of COUrsf!, This seemingly strange sequence of moves by White serves 8 ...... P·QN3 White still does not see the knight as protecting the bishop, /0 play if agaillst a IlIImoll. Oletberg and Wolfer! gil'e the two purposes: By moving B-KN5. the computer attacks the details of SlIch a cOlltesl here, rhlls festing om 'heir program. queen. The human's response, althougll successfuUy attacking so it moves the knight because it is attacked. If it does not 77I;s article is rhe las( ill 'he series by this author team, bllT the bishop. is not the best. A better move is QN-K2 which This is a poor move for Black since it allows the computer to move BxN , NxN is sec;ond best. ['m slire we'll be hearillg [rolll thell', again ill RC. Lists of stops the attack as well as avoids the complications of PQ·5 . pin the knight to the rook. Apparently, the human was trying rhe program are available [mm the QI/lliors. They call be B·K3 is the only acceptable retreating move. as it increases to develop his bishop as well as ltis pawns. A better sequential 17. BxP reached at P.O. Box 10952. Stallford, CA 94305 - TD White's center control by protecting the queen pawn. approach might have been: P-QR3, P-QN4, 8-N2. Yet the 18. R -N I B-K4 best possibilities for Black seem to lie in PXP. 19. P-KR3 N-B3 The nrsl five articles in the series explained the development 5. N-KB3 20. Q-NS and implementation of our algorith.m. In our concluding arti­ 6. N·QB3 0·0 9. B·QNS B-N2 10. B·Q2? TIlis is a preparatory attacking move. Since the queen is pro­ cle we show the success of OUT approach. To do this. we shall 7. B·Q3 tected, Black's queen can be attached via NxB threatening analyze a sample game, one played by a human against the The computer makes its Hrst blunder! This move results in B-86. computer. In Ihis case, the second choice for the computer. B·QB4 was .0006 less than B·QJ. It is our opinion that B-QB4 the loss of a pawn and is due to a shortcoming in the vital protection routine. In its evaluation of the situation, white 20 ... Q-BI The game chosen is fairly representative of the computer's has a greater atlacking potential and is less defensive. However, saw 3 defenders and 2 attackers. FoUowing the capture se­ 21. KN-Q4 NxB major st rengths and weaknesses. It is also sufficiently short White cannot see any clear atlacks. so in its opinion B·QB4 quence through, it deduced that only 2 defenders were needed 22. QxN to allow a detailed presentation. The human. although un­ is questionable. White prefers B-Q3 as a defensive move since and that any 2 of the 3 present would suffice. This mea.nt it increases the king·pawn protection as well as cementing its ranked. has been playing for about ten years and has had thai aU 3 pieces could have complete move liberty since their QxN is preferred to PxN because PxN gives Black an open structural alignment (see Figure I). previous experience against our program. He is familiar with absence would still leave 2 protectors. White failed to notice, ,ani<. the computer's approach. This is important since a knowledge however, that the bishop move not only removed the bishop's of the computer's general strategy allows its weaknesses to protection, but blocked the queen's as well. It moved the 22. Q-R I be accentuated and 'used to advantage. In the game. the ., ..... bishop because of the threat of the knight. A better move computer is White and the human is Black. - .. • ~ .. • .. here is Q-K2. This is Black's preparatory move that led to the mate 10 " " moves later. (see Figure 3) . OPEN ING MOVES • ...... " '" 10. PxP ...... " .. .. II. N-K2 B·B3 23. P-KB4 IhN ch White Black ...... 12. B·Q3 P-QR4 24. NxB R,p I. P-1\4 ., ., 13. B-QB4 2S. Q-QB4? .. .. " When the computer moves first, it has the option of choosing .. .. •• .- .- White shows indecisiveness in moving the bishop. Neverthe­ TIlis move loses a knight for White. The correct move, R·N5 . either P·K4 or p.Q4. In tltis case. P·K4 was the random ., ., .. .. ., ...... - ...... less, White still maintains the offensive advantage. Instead is given a value of 10.24 as opposed to 10.48 for Q.QB4. selection. of B·Q3, the computer should have considered P-KR3: if The computer prefers the move it made because it attacks .. " ...... " .. .. N-KR3, then BxN regains the queen pawn and destroys the human's unprotected bishop pawn. _ ... c-.. ... I. P-1\4 Black's pawn structure. If N-K4, the lost pawn is still regained. 2. N· I\B3 N·QB3 ' ... 1 ,_.2 -- B-Q3 is good in the sense that it blocks P-Q6; however , mov· 25. P-B4 3. P_Q4 P·Q3 ~ . ing B-QB4 wastes that move . 26. Q·NS ~ 1 .. Until now, the program had been operating from its book of • "I .. 13 . B·R3 Again White chooses- to attack the pawn. It prefers this move openings. At litis point. however. Black chose to make an • I .. .. • .. .. • 14. B·QS Q-Q2 to RxP because it relieves the pin on the lost knight . Best unorthodox move which did not appear in the book of open­ • .- • .'." here is P-B3. ings. The correct move to continue the Petroff Defense is PXP. .. ., .. Black's Q-A2 is a weak move that causes problems later (see Although P-Q3 is a weak move, it serves to get the program .. .- ., Figure 2). A beller move is B-N2. The computer is now ready 26. R,N off of the opening and on to the middle strategy where the .. .. to begin its assault. 27. B-K3 R-NS computer has a greater chance to blunder its initial develop· .. ., 28. RxR ment. So \V1tite is on it s own, relying solely on the develop­ IS. N(K2)xP BxR? ...... ~ mental factors in the middle game strategy to guide its opening Belter is Q-BI , however, the computer would rather take the moves ...... BxR gives White the opportunity to gain a knight advantage . free pawn. Wh,,, Again B -N2 is preferred. 4. B-KNS B·K2 ' ...... 3 '--'''I' Conrinu(fd on P9. 36 S. B· 1\3 MARCH-APRI L 1880 31 30 RECREATIONAL COMPUTING ,;?f [ I' ' -- - r--~, ~---

shots from the remaining Klingons. If you display subroutine in lines 490·670 with have at least 1000 units of power, there the cryptic message "WARP DRIVE TRS-80: will be no damage. But as the power ENGAGED .. • drops, the amount of damage increases. TINY TREK In line 820, power can be increased by VARIABLES USED docking alongside a starbase and main· taining position, although it might be I, J, N CounteIS Klingons in Less Than 4K wise to eliminate any Klingons in the area A(1)·A(49) Sector array first. Timing loops in lines 1000 and 11 00 K , •.•.•. #of KLingons in display sector BY MILAN D. CHEPKO determine how long the status reports remain on the screen. You may wish to p .... Power level D ...... Your decision ch8l!ge these as well. Milan, our !/IoSler of small recreations, x, Y • . • • . • Coordinates m warp­ presents Q Trek game for the TRS· 80 drive subroutine; 00' thaI, with some modificatioll, should This program would also work with a ordmates m display for teletype or line printer as the output work 011 other computers. The game moving or flIillJ! lakes up less tlwn 4K of memory. alld is device by replacing the warp·drive one of lite mO$l compact versio/ls we l/I1ve seell. Blast off!! - RZ

With pollution, innation, and rising gas TINY TREK prices, what this country really needs is another StarTrek program, right? I already have over a dozen versions of this popular game on disk, and unused listings for several more. So why this one now?

First of all, Trek is one of my early attempts at programming in TINY BASIC for my homebuilt system that I later converted to the TRS-80. The program ". should work on almost any system having about 4K of RAM. Second, Trek makes use of the Warp Drive subroutine that appeared in Programmer's Toolbox™ a few months ago. Finally, the program provides a relatively smooth running game, with an occasional surprise.

The flow chart and REM statements illustrate the general pattem of play, RAGING ROBOTS but a few additional comments might The player can move vertically, horizontally, or diagonally by be helpful. The first 49 elements of the pressing the number keys: array store the locations of the Enter· Landmine the PET! prise and Klingon ships, stars, and bases; A the Enterprise is placed at the center after 9~ BY LARRY HATCH " 7 8 each warp jump, while the others are ~4 5 6 ~ The numbers five and uro do nothing. randomly distributed. Line 210 assigns 2 3.... a starbase to one of the 6S array Raging Robots is surprisingly popular with my friends even ~J -.J , elements, so there will be some fields ~---"~-~ >~"'--___ though it appears very simple. The game relies primarily on that don't contain a reachable starbase. screen memory for much of its action. The program randomly Since the whole game is based on POKEs 80 grey landmilles about the screen. Twenty robors The object of the game is to outsmart all 20 robOls by luring available power, you can make it more or appear, also at random locations. The player is represented by them into landmines. This feat requires considerable skill since less difficult by changing the size of the a white circular graphic near the center of the screen. Each fo r every move the player makes, each robot gets a move. The array in line 130 and the RNDstatement initial screen setup is unique, with the possible combin ations robots' moves are always toward the player. If one robot in line 2 10. Line 890 allows for random running into the millions. jumps on the player's current position, the game ends. 32 RECREATIONAL COMPUTIN G MARCH·APRll 1980 33 At the end of each game, the user is prompted for a new game. Cursor Control Characters 320 FOIl 1'0 TO 2: VTA~ I~I" TAl H OlD-2: PRINI ..1 0 : NEXT 1 short version of ''Taps'' will be sounded. If you successfully 100 Clear Screen; RVS on; RVS off 330 IF ADS 0 OR n," 2 TNEN 250, NEXT ..I closely! 430 VJAD 2,: NlINT '110111 YOU DID IT, I" ONLY "~ " HOVES" 92tO Home Cursor 440 VTAI 23: INf'Ul ' UOUl.D YOU LIKE TO PLAY AGAIN" . At' IF LEN<..,)(I TH('" This ve rsion of Raging Robots is simplIfied from my regular 9240 Home Cursor; 1 Down SIMONlm is 3 registeled trademark of Ihe Mihon· Bradley Company. 450 '"'Ir AU''''· "T " Tl-lPN!DIA" GA>lE! ' 1 lE,. ~ U"O~ • own design (5 plus octaves), and my POKE commands are not • 00 PRINT ~ 'IE'I • 3Y sn:I :l:.rtJ. _ e 1~19 • S )'IT 8 nOO)..(lO~!,LlI10") 490 NlI~T ' TH( OBJECT I~ TO REVERSE THE TuO sns' standard. If anyone wants information on these items, write 500 rRINT '01" $Y"DOLS IN IH£ FEWEST It()V[S. " 510 oaSUI 160 ion;~ I .... • ''P''.~ ,~,~~ , o ~30 uTAD 7 )~ .. r;r "' 0 OR Z "OD 2_0 TI4£" P(lt(C SO , 2S51 MlI"T • '. ~J I'RI-;r ~'~!l1! f' _ C(>C~ Wc>: ...... ",I'flPT"RI·.'"r I6U 'll'r."_"lIT :r 'N..'~L ~O'L 1... 1 " .'!C(.,.,.- 590 NEXT 2: Pot;E 50,255: P~INT : VTAS 10; rOR .10 1 10 1500' "EXT ..I I,e "'II0 A Logic Game 610 FOR .I_I TO ,~, UTAI CALL -B69 : "HT J; VTAB 2 50 m.E ~.e F'OI[951 0 ..I, 100 ".~:"!·.!! · ff'l{,lI1(, FOtoT • • • n!l~ IS \"OlI.- 6'0 P~I"'T 'OYHBOL OVER ANOTHCR TO A VACAHT SQUARE.' >~o J~N <00 11Il Pfwr FPI'''- 10 (,() Lf' ,', FI>(;$ >} KU'.2- BY EARL KEYSER 650 PRI"T , PRlHr '110 OTHER ~OV(s ARE AL~OIItD," PRINT ~~o .;~" • ~'_"l" l ..... ~ 140 PRU"-TO W ~Efl ••• ~~$ •• PICoIll-';- 660 PRINT ' IH£ ..... "BER~ or TI4£ saUARES TO e.c "OVED' 2(0 '~1:rr-'.1zo'·"~='·'" 145 ""INT-~IA(,(,o:t. 11011~4 _ , )., op, .I\I$! frO·' 670 PRINT 'TO ANO "OVED FRO/! AR( TYP£D IN At1~r'THEY ftLliWS 1'1O'IE H(JF"1:"'''ftLW fIF,I. I I I . no IF ""I,I)_'V" THE" ~401 ooTO 700 4 6 Sluft J, K, and t gIVe Ihe 175 ""'E2.~ • .;:o WWT PF'llIT' ~-v lAF'PV WlICW , from this starting board position, m~l~: ~ I . . U, 730 GOTO 240 180 s.c_30:~.;s T"'~OO WSll~ Wloe )1,0"0 ",!".''RI""" _._._ l____ _I'd C__ .__ " roun ed corners ~J11 PfI"'P. f'l'£5~ ~ hliEtI ~W 10 ro,­ 740 POKE SOd:7, PRINT .I., POKE 50,2551 RETURN .£" )~. 11' !l-ol IK<;. )I(j ;:00 f'(H~~.6 ""'!T~~, I POI (~~_o X X X X a 0 7~0 1'01([ 50,1:7, PRI~T Kt,: POKE 50,2": PRINI Kt ': POKE 50.127: PRf"T o o )SI< !l-"Tll1~ <611 P1r. Tl!::P ~)O 29Q N'1I"-:')" )00 ,-. X-l< r,!E~ ~ '~" ~(UO~'R : I","IKI4) :)00 SC"~~ .... XXXX 0000 )1Q O~ R "~IO kOO ,~ ')<,"I, , ~lr JIG F(oJ"l.'IOilEI ..--"n·~,.-; .p up I" F',"(SCoW 10.: )'I'" ·:,,~O l~~ ~<..---u I£;·,T I 123456789 40~ ~IX) .? }t..~ ' S(') .)lI ),,'~I~h-~" , .,(ff(1I1)O ,58 ~OI'I_Ho..'0 ~(" .• (1)_1 17 •• : ~ ,,,). ~l'-') ,~.,~ )'-S" ,""ru .)~ ;;.;0 p. I ··!tIT· _ .Pt,o,;;:, "I': IF F I ·'~THE'I:.6(I ~j_ ''-'I~ ' " 1'~IXI:JJh~'~"IX)~"b"GOTO IJ.;~ by making a series of slides or "hops" to all empty board PLAYING SIMON ,m ~F .(,1): <," , ·,~(X - J'IhI,loIX):"." ~70 ""'£SC'Rr'£ 4l.' 'v'" ~"O "95 .€"" PlRVEPS """" slide 4 to 5, slide 6 to 5, "hop" 3 to 5, alld "!lOp" 7 to 5. ON THE PET 4,0 Pll:t "'J ~ . 4t'(A.hl'CllIT. "'1 , ASCI_.h~",'~ "'41, ..~( •• ) 500 IFP'''I'''''F~''''·.:f{(IOJ IIIIIY '·S.~;ol 45" ,""" ... ~O.ASCI •• )'t<:o'" L", c,.S"I~.) !oU.j lFP'&T>fOffl (951 ~ r..oTO~no 460 ' = L'I,ASCIM)ti'OCE t ·J. ,.~ ~I~.) ;P "':~ ,"""_., .. 0(,"_) ~ .... 1~T - ..o'(U' IIkH ' fUE~2-O"e "'ll~_ 41C '1.1:,1'1.1 ~,o GElD' 1Iow...,0.· s(_:";'Cf'$ ''''. PEe, '~~I carl Keyser (who operates the Pilot Exchange) now brings ":: l"1l'"·Y,".''' r",~ •.• ·,"II ,.:I J IG.: 5*, I.D.;;:IHE ...... ,.. ••O Can You Repeat 99 Notes? 500.xr "';,IF ~ •••":~" ,C ~.e 1,!)o)1HE...... \".·" he also has a fallcy LORES copy of this game for sale. Jilrite SIC IF "-$ ~ .~ - :'I"'. ·'1', ~ IfU_ .. II£''''''·''1.1-I 511 II' oli" " :'IiLH 520 '10':8 IFD_61"",Nt"WoI to him at 22 Clover Lane, MasOIl at)', Iowa 50401. - RZ Sl2 IF 4,·t" .".OE;: !::o; ~;"(j lFD_~T>E'MI_""·4' BY STEVE GULL >~} IF ,,",".- :::1;" HO ~ IFU_~IHE'M"""'·.C 5~ <> 530 Lo J)16lt!. N,7 ,;.e F1£", FOlIO" ~~ 120 FO~ .I', TO ~'~N ,.0 CA~L -936: VTAa 10 tlt e TRS·80, alld the ADAM 31. ,;,;e M - R'I ' -:AT ~ 8.JU If 01_8, TIEHl( .s.c • .", c.JTO _,,~ Music 0 1/ the PET " by Fred Bnley in the NOLI. Dec 1979 8.~ IF DI-I(l2(1I>DI_21·">E,U'U'JI P'I'_~ P'P'I W>U1'"i>OOO : NEXT 2: PRINT 61S IIoI.G01'O ,~o 8'5 IF P'I , __.e GC)Tu!oOO 'DO VIAD 16: PRI~T ' " issue of RC, alld sat dowl/ alld created this PET version of the 620 !'at lid l"0 75,l'(1l;I; 'Io.b4.~"?0I:: ~ ""'·E SI:'J~,~I' POIESC'. I !~ p ,_J: 190 rOR Z_I TO ,0: POKe 500127: Ir Z_9 0!1 Z_'O TI1E~ POKE 50,2551 PRINT 6~5 POll ... 1 ro 250'~lEn 11 Ii6il Ifll2_&1 1HE'L('5(''''' (;(oluSOO " . ,: po~r 50,127: Ir 2<,1 OR 2 1100 2_0 IHEN POIElIl(.>co!~· r'I"o "'~'I WWrllOOC , popular Milton·Bradley electronic game. -RZ ~)O I,. H<'::, T>lf!~ ~~O _ PFIIII'_P"II " lIE .. !! 6)1 e.::o.GO/i .... 240 ~OO N!:XT Z: PRINT 6)5 ~'"" .... lSO' POIIt_lt05,l'alw_1.10l\Sn;p) ,ron >to6l. ,W, ':EXT W''' _ ~.~, ,"--S.l5, :/lJIn '10 c.oT~ 210 VIAB 191 PRINI '" FOR 2_1109: PRINT Z" " I: ~CXT Z: PRINT 1080 EI'D 6)6 Pan: ~~ .O'I"OI! 11. 1 TO E 5'l~ 0 ~200 FOPJ.,rOl~ POHLe !\\ll'UEt( ;< '1EX1) 2~5 FOIl .1- ' '0 ~:FfJ> . \tFfJ'5J _ 0: N(XT J:F(5)_2 '10 PIIr.'T,PltlNt"',O!l"t, II!.'T Y~U LCst."P""IT"'~1'C 7~0 ~~ p()o'E s.c • ..".:.~ ""'.Esr,,,,,,~) rOOE>(''''''40,91 250 VTAD 5: CALL -0"0 program replays the sequence and adds one more note. If 6 0 l ' O,G06l1l! 2\00 niB RS.PEE~,El5e' PRI~T·"RU.V A PIN' ",,"PS'I I'OtE~,PS 260 VTAD 5: PltIN! 'FRO"" , DeS I"OiI "'1 to ) SZ2ll P()(E2.~,23 PRun PRINT"I£r.Q·F"E£1 '8~1". ·JroW!~-HfI'~' 270 K_ PEE" '-'''304': IF K,B5 TII£N 270: IF hl76 T~EN .60ICltO_ you miss a note in the sequence, the PET will splutter and 690 POA ;;" RUr- f'Q.E'5O'5,0 IlAlT~~, I ·GET G' 1(-176' PRI"T lILD: POI(E ·16360,0 70>1 PUl 1I. IT05,l'lI ,' 101110 FOP~ . HOTD 21_1 ~I'C ,IE"" HIUf'N 176' PRI"T pi rOKE - 163108,0 the computer how many notes (I to 99) you want to try. RE~W. no fOIl W.l TO 'o."1:liEX' ",I, ;;QTO J <. 300 PRI"I : Ir FUlLD) ' 2 AND FIP,_: AIID OLO I P AND ADS {P-0l.!"<3 AND AU You also input how fast you want the PET to play the notes. 740 '-"u ')6 . 6 , le7 , o,157..!.,llJ.,.,hJ'~,1I;\'" 0'(1;1 S946~,.o"'I1UT'P!I:'I!'I'IOI."·""r.Al!.i tQ~ JlI.J.c.u::o yo,",< G'-"L!li ",lkl>'T 110 PRIN! "O(ll'SI " : FOR .1- 1 10 ,000: NOT .;: VTAS 7: C~lL ·00S : !!OTO 2'0 If you try three times and don't get the sequence correct, a ~~ ~;: ;91167.0

34 RECREATIONAL COMPUTtNG MARCH"APRtL t980 35 ------;------_ .. _------ANNOUNCEMENTS COflrinued from pg. 31 We wanted to demonstrate that a respectable chess program 28. RPxR svstems. 16 audio cassettes and a peripheral for mini and micro Glendale CoUegE!, 1500 N. V&,· 650·page workbook, in a lour­ 29. QxP R-KJ could be designed which had no need for tree search routines. Educational systems for numerical control, dugo Road, Glendale, CA 91208. 30. 8-82 We believe that our program shows that greater computer module lormat. Complete $995. typesetting, and other applica· Info Itt, 21250 Califa St., Suite speed and huge storage are not necessarily conunensurate Software tions. Punch operates at up to 50 MICRO/EXPO 80, the leading This is the only move that prevents Black's mate in 2. Other­ with playing ability. A few refinements to our program would 107. Woodland Hilts. CA 91367. characters a second. Type-Share. European show on microcomput· UNLlST8, BASIC Protection for wise; R-K7 , QxP mate. make it competitive with many of the current computer chess 8315 Firestone Blvd., Downev, ers, will be held in Paris on May BASIC programs. Automaticatty Information Storage and Retrieval programs that rely on a tree search algorithm, and ill this we CA90241. 6-B, 1980. Participants inClude 30. R-K7 converts any named BASIC pro­ for TRS-DOS. ISAR is a data leaders from industry. education feel that we have accomplished our original goal. However, gram (in ASCII forml saved on base mangement system designed 31. QxP RxP Skyles MacroTIIA ;s a relocatable. and the Press. Attendance is &x­ trends ill computer chess indicate that a different opinion is disk into a version that is pro­ to accommodate personal applica' conditional macro, text editor, pected to exceed 10,000. Micro! prevalent. tected; it cannot be listed or Black is gobbling up pawns while waiting for White to make tions for TRSDOS random file monitor that attows you to Expo BO, 2020 Milvia St., Berke· printed. Modified program can a move. structull!s. Package includes com­ program right into the 6502 heart ley, CA 94 704. stilt be run, sav&d, and loaded as plete source listing, documenta· of the PET. No disc system; it 32. BxP??? CUrrent chess programs have the tendency to operate on brute usual. $19.95, Data Associates. tion, and suggested personal ap' needs onlv 8K of RAM. $395. Fi rst World Confllrence on Trans· force using exhaustive tree searches and extensive computing Box 882, Framingham. MA plications with sample implemen­ Skyles Electric Works, 10301 border Data Flow Policies to be 01701. tation. $13.95. diskette .is $16.95. Stonydale Dr., Cupertino, CA This move is disastrous since it allows QxP mate. Notice, power to decide upon a move. Tills tendency is becoming held in Rome Italy, 23-27 June, more pronounced as machines get faster and faster. Never­ The Alternate Source. 1806 Ada 95014. 19BO. The growth of data net­ however, that should Black's queen leave the back rank , Automatic Printing of Disk Pro­ Street. Lansing. MI, 48910. works operated by transnational White has mate in one. BxP gained a pawn, however, the theless, it is our opinion that a computer chess program grams in paged format. PAGERS, VersaWritllr. a digitizer and data users, time sharing services, computer did not foresee QxP as making it a trade. This pro­ cannot be competitive on the grand-master level unless it has for the TRS·BO, wilt provide Advanced Inventory Control software drawing package for the a sophisticated goal-oriented strategy. It is our hope that carriel"$, etc. to be COVllred. Inter· blem has since been rectified. However, at this point, the program listings in a paged format Systam. INV-V is for 32K TRS· Apple If Computer that provides governmental Bureau lor Infor­ computer is utterly lost anyway. See Figure 4. future chess programs will rely less 011 exhaustive continua· ideal for manuals, publications, 80 disk systems. designed to high resolution, mass color graph­ matics, P.O. Box 10253,23, viale tions and more on strategic goals. and for convenient editing. provide control functions to ics comparable to the quality of Civilla del Laboro 06,44 Roma, 32. QxP mate maintain an efficient inventory the Apple. $179.95. Rainbow Italy. As far as chess progranls for micros are concerned, the level PAGERS automatically reads any system. It is on-line, interactive, Computing, Inc., 9719 Reseda named BASIC program saved in of play will remain lower thall that of the larger computers, menu-driven and human engi­ Blvd., Northridge, CA 91324. New Educat iona' Computing THE FINAL ANALYS IS ASCtt form on disk and prints it neell!d. Package is $99. Micro Consulting SaNiCII to halp teach­ but the programs will still rely heavily on computing speed on the line printer. Instructional Architect, 96 Dothan St., Arling­ el"$ and administrators use low­ Many strengths and weaknesses may be seen in analyzing using tree searches, a Shannon type I algorithm. manual included. $19.95. Data ton, MA 02174. User Groups cost microcomputer technology. the computer's general strategy and basic approach toward Associates, Box 8B2, Framing· Determine instructional computer offense and defense in this game. Among some of its best Sillce this is our concluding article, we would like to thank ham. MA 01701. Eastern Iowa Computer Club Hardware needs; locate, design and evaluate everyone for patiently bearing with the unfolding of our tale covers a variety inter~ts, uses, points are its rapid piece development and its concentrated 0' courseware and facitities; conduct Course of Study for computer Supllr Isolator is designed to computers, and topics in monthly attack. Its pieces were mobilized quickly and efficiently and and also everyone at our old high school for putting up with training programs; prepare appli­ literacy in the classroom. Covers curb those severe electrical prob­ meetings. Contact EICC. Box it did not overextend itself while attacking. Weaknesses were us. We would especially like to thank Ms. Helen McGuigan cations lor grants, and purchase me essentials of programming for lems that often cause memory 164, Hiawatha, IA 52233. evident when it failed to press the attack. It did not aim for who has supported liS and our work for almost 5 years, even equipment. Logics One, Box 41, TRS-80, PET, Apple and oth&rs the king, but rather for other pieces. Near the end, it seemed after our graduation from illgh shooo1. loss, crashes, etc. It features 3 in· Utica, MI 4B087. through five tapes, from Getting Supllrboard Club for 051, CIP and more interested in capturing pawns than preparing a mating se­ dividually dual-Pi filtered 3· Started With the Computer to prong AC sockets. and can ac­ Superboards. Updated informa_ Computer Camp, a unique recre­ quence. It also made some poorly timed waiting moves, yield­ REFERENCES Programming TlIChniques and commodate an 1875 watt load. tion on your computer in month­ ational and educational experi­ ing the offensive advantage to Black. Flow Charts. Includes filmstrips, $79.95. Electronic SpeCialists, ly newsletter, programs, ideas, ence for youngsters, ages 10-17, Bach, R., "Man bites computer," Readerr Digest, 101:151-2, Nov. tapes, and handbooks, $84. Edu· Inc., 171 South Main Street, tlli:hnical data and more. Super­ directed by Or. Michael Zebinski, Many implications of moves are seen several moves in ad­ 1975. cational Activities, Inc. P.O. Box Natick, MA 01760. board Club, Box 55, Agincourt, Professor at Fairfield University. vance by the human. Black's checkmate could be envisioned "COC 6400 R-B4 chi computerized chess tournament in Boston," 392. Freeport, NY 11520. Ontario. Canada MIS 3B4. Action packed week from Juna as many as 10 moves in advance. Unfortunately, the computer Newsweek, 80:79, Aug. 28, 1912. TRS-80 Kllyboard Modification 29 to July 4, with small group does not have sufficient computing power to make such ad­ ''Cheops plays Chess," Scientific American, 235 :66, July 1916. Chemistry CAl Programs are 15 Kit includes everything you need­ South Carolina Appla, a new instruction on mini and micro vanced predictions. When a capture sequence involves pinned Hanver, Milton L., ClIesr Made Simp/e. NY: Double Day and Company e-ducational software programs for wire, solder, control key. 2102 apple computer usel"$ group, computers. Computer Camp, pieces or vital protectors, the computer has difficulty in pro­ In c., 1951. the Appl& tt in Applesolt BASIC. memory chip, slide switch and meets on the second Tuesday of Grand View Lodge, Box 22, Hickey, Lisa Lane, "I felt a genuine sense of confrontation," 17link, Designed to supplement the high mounting hardware. 6ach month at 7:30 pm at the Moodus, CT, 06469. per analysis. Perhaps a tree search algoritluu would improve 31:32-5,June 1971. school or junior college chemistry Byte Shop, 1920 81ossom Street this situation. In general, however, the computer played a Horowitz, I.A.,AII Aboll! CI1ess, NY: MacMillan, 1971. course. Topics from gas relation· The documentation is detailed in Columbia, SC. For information Appl& Educators' Nllwstetter on respectable game of chess; especially inlpressive was its fonnid­ "N x P! " Scientific American, 231 :51-4, November 1974. ships to organic chemistry. J & 5 and complete, with many pictures contact South Carolina Apple, events, developmants and soft­ able initial attack. Newborn, Monroe, Computer a,ess. Academic Press. 1915. Software, 140 Reid Ave., Port and diagrams. Emmanuel B. Felix Clayton, President, 1610 ware for the Apple computer in Scurrah, M.J. , and D.A. Wagner, "Cognitive modeU of problem solving Washington, NY 11050. Garcia, Jr. & Associates, 3950 N. Longview Road, Mount Pleasant, education. Minnasota Educ. Com_ Our program is one among many to add ress itself to the chal­ in chess," Sciellce, 169:209-11, July 10, 1910. Lake Shore Dr .• Rm. 2310. SC 29464. put ing Consortium, Conduit in lenge of computer chess programming in BASIC. We have Steen, L.A. , ''Computer Chess-Mind V5. machine," Science News, Apple GrlKle Book is a grade Chicago, IL60613. $19.95. Iowa. bibliographies, adverti5ll' fOW1d our program to operate efficiently under the restrictions 108:345,350, Nov. 29,1915. recording systam for anv teacher ment, software distribution, (et­ of the system available. It still is in need of some fine tuning Worth, Thomas, Basic [or Everyone. NY: Prentice Hall Inc., 1916. that records, lists, sorts, and RomWritar™ is an EPROM pro­ Other ters and articles. 12 issues $ 12. in its analysis values as well as some additional factors for Zobrist, A.L., and F .R. Carlson Jr., "Advice Taking Chess Computer," averages student grades for the grammer designed to permit the AEN, 9525 Lucerne, Ventura, Scientific AmericolI, 228:92-105, June 1913. semester. It can make corrections Apple Computar owner to pro­ Call for Papllfl for the Fourth CA 93003. consideration that would make a mating sequence perceivable and back·up files. On Diskette for to the computer. Many more general factors need to be con­ gram 2K 2716 (5V) EPROMs. Western Educational Computing $29.50 from J & S Software, 140 Diskette based software included Conference being held in San sidered in end-strategy. In this game, the computer began Parsonal Computer NE Twork Reid Ave .• Port Washington, NY with RomWriter permits virtually Diego on November 20 & 21, (PCNET). started Out of People's using end-strategy on the 29th move. From there it tends 11050. 'foolproof programming. $159. 1980, by the California Educa­ Computer Company, offel"$ per­ to revert to the basic strategy of advancing pawns and cap .. Mountain Hardware, Inc., 300 tional Computing Consortium. sonal computer·based electronic turing enemy ones. Under$tanding Data Communica· Harvey West Blvd., Santa Cruz, Ask for specs. mait software. A unique grass­ tions Networl

NOTE: If neither 'I' or '2' is typed to five digits for a line number.) The user Unes 320 to 480 contain the heart of the the input prompt, the question will be now types in the instructions. When the program. The rest of the code deals asked again. user wishes to stop typing, '·STOP' must mostly with the file handling on the PDP. be entered to the input prompt. The pro· For those of you wanting to put the The screen will now clear, and a border gram will now close out aU files used and Program Instruction Builder on your will be primed on the right hand side. ask if you wish to run this program again. machine, concentrate on lines 320·480, The distance the border is to the right is If the answer is yes, type 'Y' to the input and set up files as you would for your SOFT\VARE determined by the maximum length a line prompt. If anything else is typed, the run computer. of code is allowed to be. (In this case. wiIJ be temlinated. that number is 72 characters, with up to Saves Time and Typing Example Output

BY MARC B. STAN IS PDP/8A with CRT, two printers, two The first thing the program requests is disks, and a mark sense card reader. the device and file name into which the instructions are to be stored. The Here ;s a simple utility routille created by [ had just completed one of the game program then asks for a command. a sen ior at Bremen N.S. il/ Midlothiol!, programs I had been working on, and There are two choices: llIillvis. 771;s program helps you pur the needed to write the instructions for it. ," sel of il/SlntetiollS all a game program, or (The program simulates a race. It allows I . Start a new set of instrllctions. To get :, ":: allY program, ill Q hurry. It takes some o[ up to ninc racers.) I decided to write this option, sinlply type 'I' to the tile dmdgery Ollt of the losk, alld leaves a program that would make the job of input prompt. • yOIl more lime for creatillg other games writing a set of instructions a Jot easier. 2. Continue an already started (old) set • alld diversiOils. - RZ The program would have to genera te the of instructions. To get this option, g line numbers, put a set of quotes around simply type '2' to the input prompt. • I am presently enrolled in Computer the inputted line, and put a print state­ The program will now delete the ... . ! ment in front of it. All the user would 'close' and -end' statements which are II, • Concepts III , computer science course • where I am learning assembly language have to do is sit in front of the CRT at the end of the old set of instruc­ •• programming. TIle computer is a DEC and type in the instructions. tions. ::, " : " , " ...... ! ~~!~!~ ...... iii" " ------,.,.1:"",. ;;~~ • ~~ ~a., Instruction Builder listing f , :Hfff fnd~ , ;;:9:o~g~ ....

N•

I • • ..~ ,!)! • ~-. -.-oe .-•• . ~ - A Simple TRS-80 Search Module BY RAMON ZAMORA

77,is article shows you how to creote a begillning program THE DATA FILE FIRST that will adequately search al/d retrieve data from small files. ·• 77le material is excerpted from a forthcoming book: TRS· The program that follows will search a file of data containing ·- 80: A Self Teaching Guide, by Albrecht, 11//1/011, alld Zamora, the names, addresses, and telephone numbers of individuals, " © 1980, 101m Wiley & SOlIS. Illc. and extract the records that match a search key that the user specifies. o • -• n,e program thaI is del'eloped works 011 data records cOl/lail/' ing sIring illfonllalion. The parliclIlar application discussed, The file , in this case, is contained in DATA statements within a directory search, could be generalized to a I/llmber of other the program. The routine could be extended for use with areas: inventories, business accounts, or computer club reo a larger data base that is perhaps stored on tape or disk, bu t cords. nle program is written ill LeI'elll BASIC for the TRS· the demonstration program only uses DATA sta tements. • - n

38 RECREATIONAL COMPUTING MARCH·APRIL 1980 39 -

Both records are displayed since both fust names begin with The search key is in K$. NI$(N) contains the first name of In fact , to keep things really simple, only two data records Lilies 40·150: Presents "menu" of selections. the letter J. Pressing any key will cause the "menu" to the Nth record being examined. The function LEFT$ extracts are used. The records will contain the names, addresses, and reappear. What will appear on the screen if a search by first the leftmost characters from NI$(N) based on the length, telephone numbers for two people: Lilies 160-180: Accepts "menu" selection, and validates name is made with the key JAC? LEN, of K$. That is, the number of characters looked at in entry. Nt $(N) is detennined by the length of the search key. All the Jack Jones 1511 Westport Dr. Menlo Park, CA 94025 415/ If menu selection one (I), a search by first name, and the key other searches are carried out in the same way in lines 220· 555 -0707 Line 190: Gets the search "key." The variable P will be used JAC is entered the screen shows: 270. Jane Jonarts 1521 Westbury St. Menlo Pk., Calif. 94025 415/ later to pOSition the output on the screen. 555-1975 ENTER THE SEARCH KEY: JAC THE SEARCH IS OV ER Line 200: Begins the loop through the data file. A branch is We have deliberately chosen two data records that are similar made to the appropriate test statement (Lines 210·280) JACK JONES 1511 WESTPORT DR. When you give this program a try, experiment with various in many respects so that we can demonstrate the search where the search "key" is checked against the data item. MENLO PARK CA 94025 415/555·0707 menu selections, and use different search keys. Notice how capabilities of the program. quickly the TRS·SO is able to scan the records and display the HIT ANY KEY TO CONTINUE: Lines 210·280: Tests for match of data with search "key." resul ts of the search. The program searches each data record by: first name, last Why does this occur? Well, the search key is three letters name , street address, st reet name, city. state, rip code, or area Lines 290·300: The entire record is displayed. long, and only matches exactly with the first three letters Can you think of a way to really simplify this program? Hint: code. The search key can be from one to several letters long. of Mr. Jones' first name. The key does not match Ms. Jonarts' Change the arrays (Nl $, N2$, and so on ... ) that are being If an exact match is needed, more letters can be used. If fewer Line 310: Increments the screen position index. first name in the first three positions. So only the record for used to one array!! If one data array, say D$, is used with letters are used ; all records that match the search key are Mr. Jones is displayed. dimensions D$(8, 10), lines 210-270 reduce to a single line in displayed. Sounds like a lot of program, doesn't it? Actuall y. Line 320: End of the search loop. the program: the program is quite simple. Lines 330-340: Pause to view output. Cl@ § IF LEFT$(D${K,N),LEN(K$»=K$ THEN 290 ELSE 320 THE PROGRAM Does match in"'------@ ~Does not match Lilies 1000-1030: Subroutine to READ the data. first three letters. in first three letters. Amazing!! The entire search and display section reduces to Here is the program for a computerized directory search: just a few lines of BASIC! What else could you do with this Lilies 1040- 1050: The two example data records. If the search key had been J A, both records would have been program? The techniques shown here would work on any data put on the screen. Let's examine line 210 of the program fIle. Instead of names and addresses, you might have a parts ,. .j W·' ( ' Q~l'lITr",U'" 0'"' CT""V ".A""" •• '" UlW Nt"' .' NI' '01.10", 10) .101" ,., """., '" '01 .. " I., .n, ,., If the program is entered and RUN, the first thing to show where this matching operation is taking place. inventory, a list of business accounts, or your computer club 10 ns INI'\.IT"'J:JIO I .. "L'-'n,N"'~'.lIN'""' ·.'''''NHOHSI)1O 4K. lJO "un. lA'''"' II " ••", • • , fiR" '"'" LSI I .. 1- FIRST NAME A. I assume this is the solution for which a hint was given. 140 "lin. 'A".NI.l[~'.1I , . lHU< 1,.I.lS'-)1O 2- LAST NAME 1'0 ""1""~"N I .U"• • "'·.'T>lEN"'O:lSI 1>0 A. Works for all real numbers in the Basic's range: "" II lU,"S",,'_" " .. l, "T>I.... ""'Uf». 3- STREET ADDRESS 1'. ""111.ll'"'.U.... I" ••• TI"N""EU')>O 10 REM·"PROBLE1tt#1 POSITIVE NEGATIVE OR ZERO 2tO II l""m,~' uN•• II"l1"-I<'""''LSfllo 4- STREET NAME "" '.'"1· '''., ...... ,~", ... -''')$,N,.- ... Nl""':1A .. UlAI""i"'··•• '~NI 5· CITY JO INPUT "YOUR NUMBER";N 20 REM···RECREATIONALCOMPUTING 1/80 .100 '.,"'."..... I,·.. n,~~- ... ,,,~)" -'U,N, :1AOI<01 :1"'" II. •• f. I 6· ST ATE 20 ON I*(N)O) + 2*(N=0) + 3*(N<0) GOTO 30,40,50 30 REM"·SUB1ttITTED BY LEN LINDSAY ,.. Nfltt~ 7- ZIP CODE 30 PRINT "NEGATIVE": GOTO 10 40 REM ". '.II... 'IO."HIT ANV nYTOro""N~t"· )00 .S·'."'V'" "·-TIl"") 32000. data input routine (line 1000). MARCH ·APRIL 1980 41 40 RECREATIONAL COMPU TING more about it. For example, I have never RC's (Michael Madaj's) continued corre· TOWER OF HANOI CORRECTION very amusing and it ran fine on my TRS- written or seen a complete program spondence in this matter qisregards the 80 except for the Rnd(-I) statements which parses English. It may be a fact that I make no reference to having The Tower of Hanoi program by Herbert which were easily corrected. However, straightforward program to P. David read the Tolkien books. I merely went Dermam is fun to use and to watch (Re, when I started adding mote words, it was Lebling & Co., but that's because they've to a movie, found it wanting, and up· NOv.-Dec. 1979, p. 35). In keying it in not just a simple matter of changing the worked with that kind of thing before. braided the author of the article for from the listing, I found several minor Rnd statements. I started getting "out of having no discernment between good corrections were necessary in order for data" errors and soon realized that the Also, the article only described about half rUms and the other kind. the program to run properly. These are: formulas had to be changed as well. If (or less) of the structure of Zork. That's line 220 is changed, then line 320 must not enough (for me) to modify, translate, But your readership, as well as severa] 120 ON R GOTO 300, 130, 1000 also be changed. Here is what seems to rewrite, or do anything better than ABOUT ADVENTURE heated letters I have received personally (THE TEXT READ "100") me to be a Simpler solution which has the Adventure. How can anyone write (all of which run to undue length), com­ advantage of keeping the lines that must Tiny Zork without knowing what Zork Over the past few months I've read in 80 machines. Each advellture has a pletely ignore the content of the original 210 FOR 1=) to 100 PRlNT@896, be changed right next to each other. is? "(APPLAUSE!! ... Recreational Complltillg and elsewhere vocabulary of 150-200 words. We have correspondence. The writers of the so­ For example: Please publish more about lork. Release (THE @SIG NWASMISSING) about a game referred to as "Adven­ observed kids playing these games for called " Tolkien Debate" (which is no 220 Rl=Rnd(I3) more of the source, publish articles about ture." 1 assume that these references are hoursl 17lese versiOIlS are remarkable, debate but a diatribe) are saying, " Lon , 230 For Z:::1 to 13 natural languages, or something, any­ to the now-famous main-frame game 220 FOR 1=1 TO 100 NEXT 1:PRINT given the size of machine for which they you are a cad for not liking sweet old 240 Read Z$ thing! How about more pieces of a @896,CHR$(30); written, I believe, by Wi! Crowther. If so, (J}'e configured. - Eds. Me. Tolkien's stories and we pity you for 250 If Z=RI then A$=Z$ dungeon , a listing of the 'substrate' or (CHANGE THE S TO $) the game originally ran on a full-house not being able to appreciate them. How 260 Next Z parts of it, a list of comments, an ex­ IB M 360 using about 1,100 FORTRAN AN APPEAL FROM YOUTH could you say such things when we, the etc. planation of what the parser uses for a statements plus text plus data. About a coglloscenti, can quote you chapter and 440 THiS LINE SHOULD BEGIN: IF data base, an explanation of some of the year ago it was made available to Heath I never want to stop getting your fine verse about this or that or the other (M ISSING) Thus, if you add 2 words to AS data, 'internals' and 'primitives,' etc. H8 owners in a disk version running in magazine. I especiaUy like the articles thing." simply change the 13s in 220 and 230 to 24K. This version was distributed to that speculate on new uses for computers. 490 CHANGE 10000 TO 1000 15s. Or, how about the possibility of Raul MiUer members of the Heath Users' Group Please enter me as a retaining subscriber Well , a careful reading of my original (SAVES FRUSTRATION) defming A, B, C, 0 , and E at the begin­ Rt. I Box 283 B (HUG) for SIO.OO, and ran exactly the and add the appropriate number of issues letter will reveal that Mr. Bakslli's film, ning of the program and using these Molalla OR 97038 same as the large version, so far as I to my subscription. not dear old Mr. lolkien's books, took 6090 DELETE THE PERIOD FROM variables instead of the numbers? Then Yes, we wallt to publish the answers recall. Truly remarkable for an 8080· the worst of it! I am in complete agree­ THE END OF THE LINE only I number must be changed. to all of your requests, bllt ZORK, based system without IBM's megabytes I am a high school junior, and I have a ment with C.A. Cozart (PRINTS AN UNNECESSARY ZERO (Letters, RC Thus: like allY fantasy adventure game, is a of memory. Not much later, a tape ver­ Model I Level II TRS-80 with a disk, Nov.-Dec.) thai movies and literature ON THE SCREEN) 10 A=13:B=15 etc. creation. You can take what was pre­ sion running first in 32K, but later avail­ line printer and voice synthesizer. I want have' no place in a computing magazine. 220 RI=Rnd(A) serlted am! make liP your OW" lIersion of able for 24K systems, was made available to share my enjoyment with fe llow There is one other small (?) bug still left 230 For Z=I toA ZORK. TINY ZORK mayor mQY not by Eggert Engineering, 95 Adams Drive , students. There are about 2500 students The point of the leiter was that 1 liked in the program .which I have been unable etc. look like the original. based on what you at present and the town is growing some things about RC regarding the con­ to rmd. However, it does not affect the Stow, MA 01775 for SI6.50. I under­ or others do to create it. We suggest that cept of the game Universe, and I did not No big thing, but this one is even easier stand a paper tape version is available for rapidly, so I think it would be a good idea running of the program. (The number of yOll get together with a group offriends, like the praise of a fUm which could those not blessed with a Heath H8/H89 if we got something started in the discs called for at the start of the program to change. and put together your ZORK. -Eds system. The point wanted to make is computer field. The math and science only be enjoyed by the most knuckle­ on Tower 1 is one less than it ought to J Keep up the good work. that this is not a watered-down version or teachers at my school are gathering headed of individuals. be. The proper number of discs are in COrltlrlu~d from pg. 3 a pale copy as some of the more recent information to present to the school play.) Jerry Rutledge issues appear to be. board to explain why we should get one I mentioned elsewhere that I thought the your friends, relatives and a$lllOCiBles to sub­ Box 123 scribe. You could become a retainin, sub­ or two smaU computers. I would Universe article by Les laZar (RCMarch­ Perhaps some sharp-eyed reader can fmd Waseca, MN 56093 scriber, a sUSlainlng subscriber, or a Lifetime For anyone interested, there is a medium· appreciate any suggestions you and your April) was the best that I had seen. Well, this still hidden (to me) bug! subSCriber. The premium you pay over normal readers could offer to help our cause. subscription rates helps us reach new readers sized computer club in the Blacksburg, I also get a number of other computing GOOD INPUT and improve the quality of the maguine. Or VA, area known as the New River Com­ magazines, and I thought the readership I have enjoyed the programs in your simply send us a conlribullon : PeC is a non· puter Club. Drop me a line if you're THANK YOU! of RC should be aware of an article in recent issues and fmd them both recrea­ As a PET owner, I was pleased with yow profit lax.exempl corporation chartered to tional and practical. first issue of 1980. Especially enjoyable promole the educalional and personal use of interested. The organization operates William M. Richman II kilobaud MfCROCOMPUTING (J uly computers. To fulfill that charter takes both were the PET reading program and TRS-80s, Heath equipment and home­ Hill Top Heights 1979). The article describes a vocational imagination and money1 _ De",.b AlI/.ron brew, with bags of software and hardware school in Carolina which has a fuUy Philip M. Reidy "Capture" - both of which I intend to North Platte, NB 69 101 Submitting lIems FOr Publication expertise. integrated microcomputing instruction 332 Main Street put on tape as soon as my machine course using the whole set of Heath Worcester, MA 01608 returns from its trip to the vet. We welcome your articles, drawin", photo­ Thanks for listening. TOLKIEN AGAIN Continuing Education courses as text graphs, pro,rams or canoons. Submissions Charles C. Burgess should be addressed 10 Edilor, RurutiOrlll1 for preparation for careers in the field. 560 Bay St. Computing, PO Box E, Menlo Park, CA 94025. D.C. Shoemaker Once again I write regarding the so-called I think that an in·depth article for RC AN IMPROVEMENT ON CHOOSE-A ­ Port Ri chey, FL33568 Please include a sdf·addressed stamped en· 2000 A Foxridge "Tolkien Debate" that has been running on this school would be most appreciated TITLE velope. If you plan 10 send a liSlin, please query firll for spedal in$lruClionl; lutings Blacksburg, VA 24060 for two issues since 1 last made a few by the educators among your readers. MORE ABOUT lORK are very difficult to reproduce le,ibly. remarks concerning your attempts to I read the Nov.-Dec. 1979 issue of RC Leiters and shorl communications help make Adl'enture Intematiollal, (Box 3435, get into the film critiquing business. Lon Ponschock with interest and tried my hand with the The article you republished (July-August , RUf'rlltionlll Computillg interestIng to read. Longwood, FL 32750), has several ver­ 11lat, after all, was what I was writing 203 S. Douglas St. Choose-a-Title program, using insurance 1979 RC) was hardly enough to do more We assume correspondence to the editor may sions of the fafllasy game for 16K TRS- about in the first place! But it seems that Appleton, WI 54911 terms and jargon' instead of music. AU than frustrate. I wish you would say a bit be published unless you request otherwise. All letters mUll be si,ned; we reserve Ihe riSh! 10 edil for clarit y and brevity. Of course, these Adventures had the same industry. Hamurabi, Hangman , Trek, microcomputer into a series of truly a built-in RF modulator, and the TV! effect on the adults, once the children Othello, Calendar, and Eliza are all to be absorbing simulations. These games (they Game switch for the TV set (preferably could be removed from the machines. found here. are more like complex logic puzzles) a color unit). The base unit has a 24-key keypad, a slot for cassette-sized car· require you to be inquisitive, innovative, The eight Adventures now available are For the beginning PET user, the class· tridges (called VIDEOCADEs), and a thinker, a risk taker, a logician, a labeled Adventure 1 through Adventure room teacher who would like a storage area for 16 of the cartridges. warrior, and a lover of real challenges­ 8, and have these titles: Adventure Land, "packaged" software item, and those of A tape cassette unit is also available. in short, an adventurer. Pirate's Adventure, Mission Impossible, you who would like to have good llser Locating a machine & cartridges is still , The Count, Strange oriel/led copies of your favorite pro­ difficult; Bally's distribution net is not In each adventure, you can move about a Odyssey, Mystery Fun House, and grams, Dr. Daley more than fills the bill. complete. series of rooms or caves or islands (based Pyramid of Doom. Write to Scott Adams, The software has been well tested, and rno GREAT SIMULATIONS Galactic Empires is for those of you who on the particular Adventure you art and put some Adventures into your life! appears to have few, if any, errors in any Internally there is a Z·80 CPU, and 1000 Miles & Galactic Empires are becoming jaded with Taipan. Written playing. Using two word commands, you of the programs. No attempt has been memory consisting of 8K ROM and 4K Level II , 16K TRS·80 by Douglas G. Carlston, Galactic Empires can pick up objects, throw them, eat Reviewed by Ramon Zamora made to "protect" the software, and the RAM. This RAM is nonnally devoted to Cybernautics establishes you as the commander of the them, bum them, and otherwise manipu­ documentation summarizes the com· TV game operation, controlling 8 colors P. O. Box 40132 planet Galactica's imperial forces. Your late and examine whatever is in your WHAT THE DOCTOR ORDERED pany's attitude on tltis issue, in this way, simultaneously and providing a graphic San Francisco,CA 94140 mission: conquer the 20 worlds of the vicinity. You must sometimes do things Dr. Daley's Software Library "It is our conclusion that most of our configuration of 160 X 102, but also central galactic system. You have 1000 to the objects in order to proceed with 425 Grove Avenue software customers are honest people, stores data when in the 5 -function From the makers of the outstanding stardates to complete your mission. YOll your Adventure. There is a HELP com· Berrien Springs, MI 49103 and that they can benefit by being able to calculator mode. Insertion of an addi­ simulations Taipan and Trek 78 (see lVii/need rllat many! mand when you get hopelessly lost. You 169.95 Cassettes tinker with the programs." tional game cartridge adds that cartridge's reviews of these two games in the May­ can SAVE a game and return to it at a 179.95 Disks ROM to the memory, but for use with June 1979 issue of RC) come two more Tltis simulation is not a "run ·in-and­ later time. There is treasure to be the game only. completely consuming diversions. The shoot-'em-up" version of some sinlple discovered, and your score in the As microcomputers proliferate into Dr. Daley's Software Library contains latest pair, 1000 Miles and Galactic wargame translated into space. You must Adventure involves both flIlding the thousands, and perhaps, millions of 50 (yes, fifty!) programs for the PET. Empire, provide two programs that could begin in the early stages to establish long· treasure and using the objects that you homes, neatly packaged products such as The games are generally derived from If you are concerned with statistics, easily entice you to spend several months range plans for procuring weapons and encounter. Dr. Daley's Software Ubrary will be the Bally's full·sized arcade ganles. Football at your TRS-80. PET and Apple users supplying your fleet as you move out into that works out to be S 1.40 to S 1.60 norm and not the exception. Before long, and Baseball are probably the best of the per program. If you are more concerned will just have to find a friend with a TRS· the galaxy. Initial attempts to conquer Each adventure contains surprises and J expect to walk into local bookstores sports games, with Escape, Clowns, and with an innovative way to package and 80 until Cybernautics can get around to planets must be successful, or you may great comic relief at various points in and find shelves of software being Space Invaders topping the action games. market software, Dr. Daley provides a converting their stable of offerings for have to spend several stardates regrouping every game. The simulations are written marketed in Dr. Daley's fonnat. As new When the tiny BASIC cartridge is in· good example. other machines. your resources. in machine language, and are based on storage media (ROM packages, Videodisk, stall ed, the 24-key keypad is converted and so on ... ) become available, I expect one basic game framework that uses dif· into a 91·function device, and an overlay 1000 Miles is a computer sinlUlation of The cassette version comes in cassette to subscribe to Software-of-the-Month Judicious use of cyrogenics and the high ferent data sets. Don't worry, though, card is used to show the new configura­ the card game dealing with the events and binders, with accompanying documenta­ Clubs, and even have my selections speed capabilities of you r fleet can be the framework does not become trans­ tion. A key·shift arrangement is used for strategies of being in a 1000 mile road tion. The documentation is 45 pages transmitted to me over phone or TV applied to your ultimate advantage, if parent as you try each adventure. In fact, a total of five levels. In the unshifted race. You are pitied against the long; nearly one page for each progranl circuits. What else is possible? Perhaps you plan carefully. The visual displays of the latest adventures (there are now eight mode, numerals and the four aritrunetic CO{llputer, a clever and formidable module. The material briefly describes Dr . Daley already has some plans. Write tltis package are fIrst rate. You begin to of them) seem to be getting more and functions are operational. Then, when the opponent. Each of you "holds" a hand of each program, outlines the program's to them and find out. quickly feel that you really are in the more complex. GOLD key is pressed, the system shifts cards that describes the actions and control room of the fleet's command objectives, and provides hlnts on using to allow BASIC commands to be entered events that you can "play" into the ship. Your computer can tell you just each software item. The writing style is Reviewed by Ramon Zamora by a single keystroke. Similarly, letters game. There are cards that work for you, I can't possibly talk about each tape concise and informative. about anything you need to know . From individually. The discussion would and pUllctuatioll marks require pressing such as a card that allows you to get BALLY ARCADE the bridge of the command ship , you can consume all the pages of the magazi.ne. of the BLUE, RED, or GREEN key first. your racer started. TIlere are cards that The disk version of the package is also Bally Consumer Products Div send scouts off to distant planets, set up Perhaps a brief story about one use of As each shift key is pressed, its cor­ you can play against your opponent, housed in a binder, and includes the same 10750 West Grand Ave. navigation orders, tax, conscript, and ltire these tapes will give you some idea of responding color floods the screen , and as such as an "out-of·gas" card. There are documentation as the cassettes. A brief Franklin Park , IL 60131 the local planet's resources, and put your how good these games are. each input key is pressed, a distinctive "accident" cards, "repair" cards, and entire fleet into cold storage for a few introduction in the beginning of the $300 tone is heard. Constant attention to the countless ways in whlch you and the documentation tells everything that is stardates. The price of tltis package is In a recent San Diego School District screen is therefore not needed. This computer can play them. needed to run either the cassette or disk The Bally ARCADE (or HOME LIB­ $14.98, and well worth the money. workshop for 60 children, grades 7-9, scheme allows use of the inexpensive key­ series of programs. RARY COMPUTER when marketed pad as a stopgap affair until a full key­ The simulation is written by Clyde the Adventure tapes were made available Reviewed by Ramon Zamora by JS & A) has been around since Jan­ board is developed. Operation of the Farrell, a master at developing ltighly for use as part of the two-day program. The collection of 50 programs is sub· uary of 1978 but until recently was keypad is somewhat laborious, but pro· interactive and grapltical software Several teacher I observers of the work· divided into eight categories: Social capable only of TV game playing. Now, products. The action of the game is fast shop were amazed at how three or four grams can be entered at a fair clip as one Science and Sports, Pre-School Cltildren's the additional investment of $49.95 puts paced, but the complex strategies that ADVENTURES GALORE students working together at a TRS-80 ge ts used to it. Once inadvertently struck, Programs, Elementary School Progranls, one into the home computer field. That the program is lost. can be applied make 'each game last a The Adventure Tapes would stick with an Adventure for Arcade -Type Games. Science Fiction sum purchases a Tiny BASIC cartridge I·o·n·g time. The element of chance is periods exceeding three hours. The Games, Board Games, More Serious Pro· that allows access to the Z-80 chip and The language itself is a slight modification set up by the kind of cards you and the P. O. Box 3435 students were completely absorbed. They grams, and The Rest. resident RAM through the existing of Palo Alto Tiny BASIC III , documented computer are dealt and can draw. Beating Longwood,FL32750 didn't want to take either a rest or a meal keypad. by Dr. Wang in PCC's Reference Book of the computer is either a frustration or a break. Suggestions that they might want Most of the programs in the package are Personal and Home Computing. The Bally challenge, based on what ca rds you get. Scott Adams, Cltief Adventurer, has to stop for a whlle, and take a break were taken from the stable of games, simula­ The base unit includes two hand control manual is less complete than the explan. The $1 1.98 price of the simulation will parlayed his initial efforts to produce a often met with the response, "Do we tions , and applications that have become units (Two more can be attached, for an ation in the original document. provide you with hours of enjoyment. version of the game Adventure for the have to?" "classics" in the microcomputer software additional $30), a wall plug transfonner, -

Because of the video card heritage, Examination of the sample tape listings with access to two cassettes and to other color and sound are enhanced enabling of the cassette interface revealed that there peripherals via an RS-232 serial and a programs and self-generated games to were operations and conunands that were 50·pin parallel connector. A new have unique features: not mentioned in the manual. The most language , ZGRASS, will be used that powerful of these are %(n)=m which utilizes labels for subroutines and can GRAPHICS-The unusual commands provides the PEEK and POKE operators; perform multiple operations at once of LINE and BOX provide the user and &(a)=t which yields varying results through a layering technique. The option with the graphics capability to con­ having to do with color and sound as includes a super video system called struct graphs, charts, and shapes on various values of a are set, and t is varied GRAFIX, whose capabilities were shown the screen. from 0 to 255. at the CES last January. COLOR-A palette of 256 colors is available, with only two available at a From other experimentation have come Bally is now saying thai they will delay time. machine language inputs, memory dump production of the Keyboard until the SOUND-The machine provides a sin­ programs in hex and/or binary, and four question of reduced interference require· gle voice in Tiny BASIC that is 3 function calculator operations with ments now before the FCC is re.solved. octaves in span including sharps and decimals. Other things being worked on The basic unit was first advertised by flats. These are played by PRINTing include data storage on tape, peripheral JS & A in October of 1977, with a numbers 1 thm 7, which correspond and memory additions, as well as other four week delivery. That date was not to notes C thru B. Prefix operators are work -arounds to go beyond the bound­ met, and things never really got better. used to shift between octaves and half aries of Tiny BASIC's capability. A group The advertising indicated that the Key­ notes. of experimenters subscribe and contri· board would be introduced in 1978. At HAND CONTROLLERS-Since these bute to the ARCADIAN, a journal the January CES, Bally was talking about contain input devices (switches and a containing material unique to the Bally June/July 1979. In a field of extremely potentiometer) that are addressable product. rapid movement, these delays, coupled program data can be generated from with the lack of advertising of the basic the controUer. It is also possible to Owners are awaiting the release of the unit and its capabilities, are certainly input the results of totally external Keyboard Progranuner option. Prototype hurting the concept. operations through these ports. units include a storage increase to a total of 20K RAM and 32K ROM on board Reviewed by Robert Fabris San Jose, C4 95127 DR. DALEY presents Software for the PET and the APPLE

Dr. Daley's software is proud to announce package for only $69.95. Included is our best the release of a package of our best selling selling TREK3, CHECKBOOK, and a mailing programs. list, tutorials, games and puzzles for every These programs, regularly retailing for over member of the family. All attractively $400, have been assembled into a single packaged in an album.

50 PROGRAMS ONLY $69.95* • Disk version $10 extra. Your order will be shipped within four business days from receipt.

Charge your order to MC/VISA

DR. DALEY, 425 Grove Avenue, Berrien Springs, Michigan 49103 Phone (616) 41]·5514 Sun. thru Thurs., noon 109 p.m. eastern time . • •• RECREATIONAL COMPUTING