# Macintosh Program Factory 1985 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-742e1150b1ab1bae03683a1e573c9ea09cca95fb30884a668b1739c9846c9269)

Macintosh PROGRAM FACTORY

Transcribed text:

Osborne McGraw-Hill

Macintosh
PROGRAM FACTORY

George Stewart

Image description: Book cover with a cream background, a green script 'Macintosh' logo, bold black 'PROGRAM FACTORY' title, and an abstract geometric illustration of a red circle with a black symbol, yellow arrow, letters and shapes, a red question mark, and a black X.

Reading notes: Trademark symbols (TM) after 'Macintosh' and 'PROGRAM FACTORY' are small and present; the author name 'George Stewart' is legible at the bottom. Stained or worn areas at top right and a sticker-like mark at left edge; no text lost there.

Printed product names: Macintosh Program Factory

Languages: English

[Original Image 1](https://www.vintageapple.net/files/49daaa0b6e707b8df0c994e2ff6522be8b6f02ac93c2420722dd79ab65ca5e40/49e7e5d1f68686528e07db51.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-797dbc367d2e40c73f46f2d3811c1e4f1e79fdc597e6370109656ae0f20805dd)

Transcribed text:

Osborne McGraw-Hill

Macintosh™
PROGRAM FACTORY™

George Stewart

Image description: A book cover with a cream background featuring a green script 'Macintosh' title, a bold black 'PROGRAM FACTORY' subtitle, and a geometric abstract illustration of colored shapes including a yellow arrow, a red circle with a black cloverlike shape, a green ring, a black X, a red question mark, and purple and light blue L-shaped forms.

Reading notes: The printed 'TM' marks after Macintosh and PROGRAM FACTORY are rendered as superscript and may be trademark symbols; transcribed as ™. Publisher name 'Osborne McGraw-Hill' is in small type at top left and is transcribed with the 'Osborne' and 'McGraw-Hill' spacing as it appears.

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=1)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-14489de33af0d5fbf63d698c7ff02763a37c2684af5b4cc94927b4e23c9be3a4)

The Macintosh™ Program Factory

Transcribed text:

The Macintosh™
Program Factory   TM
George Stewart
PROPBRTYOF
CUYAHOGA   COUNTY
PUBLIC   LmRARY
Osborne McGraw-Hill
Berkeley, California

Reading notes: Library stamp text 'PROPBRTYOF CUYAHOGA COUNTY PUBLIC LmRARY' contains OCR-like irregularities and may be a damaged stamp impression

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-6c73db43ba2867033b31767fabdb700a0cebd1887183bb062ac2650d73548e33)

Transcribed text:

Published by
Osborne   McGraw-Hill
2600 Tenth Street
Berkeley, California   94710
U.S.A.
For information on translations and book distributors outside of
the   U.S.A.,   please write to   Osborne   McGraw-Hill at the above
address.
Program Factory is a trademark of the author.
Mastermind is a registered trademark of Invitica Plastics.
Spirograph is a registered trademark of Kenner Products, Inc.
Apple is a registered trademark of Apple Computer, Inc.
Macintosh is a trademark of Apple Computer, Inc.
-The Macintosh   TM   Program Factory   TM----
Copyright © 1985 by McGraw-Hill, Inc. All rights reserved. Printed in the   Unit-
ed States of America. Except as permitted under the Copyright Act of 1976, no
part of this publication may be reproduced or distributed in any form or by any
means, or stored in a data base or retrieval system, without the prior written
permission of the publisher, with the exception that the program listings may be
entered, stored, and executed in a computer system, but they may not be repro-
duced for publication.
1234567890   DODO   898765
ISBN   0-07-881175-9
Karen Hanson, Acquisitions Editor
David   Ushijima,   Technical Editor
Ted Gartner, Copy Editor
Judy Wohlfrom, Text Design
Deborah Wilson, Composition
Yashi   Okita,   Cover Design
005.265
St49m

Reading notes: Headline not clearly identifiable from supplied copy; title may be absent from extracted text

Printed product names: Macintosh · Program Factory · Mastermind · Spirograph · Apple

Printed dates: 1985 · 1976

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-3ed388d9c35ec90bb0218ddedca68689d24ab50a8b7b057f3d12e17c4ecbaf4b)

Transcribed text:

-Acknowledgments   ---------
The author is grateful to the editors at Osborne/McGraw-Hill
for their professionalism and kindness during the writing of
this book. Thanks in particular to Karen Hanson, Jon Erickson,
and Harry Wong.
)

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=5)

### PDF page 6 · PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-f15b7b43b10a59bac316ebf97ee9927dbef1421c1710184cd32345204e6120ac)

Image description: The image is a plain, entirely blank white page with no artwork, layout elements, or markings visible.

[Original PDF page 6](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=6) · [Original PDF page 2](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=2)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-5de64f581dd7a8998f64ac778b19cb0bb94c8d07a0a331939dde4b61681d0655)

Table Of Contents

Transcribed text:

Table
Of   Contents
Introduction   XI
Chapter   1
Making Mazes   1
Chapter   2
Hidden Words-Part I   17
Chapter   3
Hidden Words-Part II   39
Chapter   4
The Matchmaker   61
Chapter   5
Crossword Puzzle Patterns   81
Chapter   6
Playback   99
Chapter   7
Electronic Billiards   117
Chapter   8
Concentration   137
Chapter   9
The Codebreaker   153
Chapter   10
Tic-Tac-Toe   173
Chapter   11
Quiz   master   199
j

Reading notes: Chapter titles and page numbers are listed in a table of contents; final entry 'Quiz master' is split by spacing and 'j' appears as a stray character.

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-52dfca0ea00461d8c03609ad9b704a3bb5536d7395e0f5b1aa2af8586803e66d)

Transcribed text:

Chapter 12
Speed   Math   229
Chapter 13
Text Scanner   249
Chapter 14
Roman Numerals   283
Chapter 15
Poetry   Generator   301
Chapter 16
Designs in a Circle   331
Chapter 17
Secret   Messages   353
Chapter 18
Blazing Telephones   373
Chapter 19
Nutritional Advisor   393
Chapter 20
The Time Machine   409
Index   429

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-5a6df2d487069b729e403ca3deff3020e2de104d563737aef5e15427a17458a6)

Transcribed text:

-Introduction--------------
Your Macintosh computer has a tremendous amount of power inside,
power that you've probably seen harnessed to a specific application like
word processing or picture drawing. The programming projects in this
book will put you in control of that computing potential, setting your
Macintosh to work as a puzzle generator, entertainer, teacher, creative
assistant, and general helper.
Most of the programs in this book let you contribute something as
well so that the program's operation or its results have your own per-
sonal touch. You'll be able to enjoy these programs for a long time to
come, changing them every now and then to suit a special purpose or
simply for variety.
If   you're interested in how the programs work, you'll get an inside
view from the commentary that accompanies the program listings.
Many of the techniques and ideas can be adapted to your own pro-
gramming projects.
The programs are written in Microsoft BASIC, the most widely used
form of BASIC. All programs take advantage of the Macintosh graph-
ics and mouse, and many can be used in conjunction with other Macin-
tosh programs, such as Mac   Write and MacPaint.
The step-by-step method of presentation and many of the programs
in this book are adapted from my column,   "The   Program   Factory,"
which appeared for a number of years in   Popular Computing   magazine.
Contents of the Book
The   20   programs in this book fall into five categories:
•   Puzzle-generators   produce graphic and word puzzles that may be
printed on paper. The printed puzzles may then be used without
the computer.
•   Games and simulations   for one or more persons; the computer
plays an active role.
xi

Reading notes: Section heading 'Contents of the Book' and remaining list items are cut off at the end of the supplied copy.

Printed product names: Macintosh · Microsoft BASIC · Mac Write · MacPaint · Popular Computing

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-1b164c3171f032023f5c4c88bbb668b76aaf2d12405e586197428ff1c340b25b)

Macintosh Program Factory

Transcribed text:

xii   Macintosh   Program   Factory
•   Education and self-improvement projects   that teach and exercise
your mind.
•   Creaiivity   and art projects   in which the computer becomes a way
of extending your imagination.
•   Handy tools   or application programs for use around the home or
office that has entered the computer age.
Chapter   Organization
Each chapter starts off with a little background and introductory
material about the subject at hand. A description of the main pro-
gramming methods or techniques used in the program follows.
The program listing comes next.   It   is presented in functional blocks
accompanied by explanatory comments. With some of the longer proj-
ects, test points are provided so that you can check your work as you go
along.
A concluding section of each chapter gives hints and tips for using
the program.
Computer Requirements
To run these programs you'll need a Macintosh computer equipped with
Microsoft   BASIC   version   2.0   or later.   Be sure to use the binary version of
BASIC, not the decimal or   "business"   version.   All of the programs will
run in a 128K RAM Macintosh, but most of them run faster and with
more capabilities in the 512K RAM machine.   Your   computer system
should also include the Apple Imagewriter printer; other printers may
not reproduce the graphics accurately.
Suggestions for Entering Programs
Before typing in any of these programs, find out how to enter and edit a
program using Microsoft   BASIC.   Step-by-step instructions are given in
Chapter 2 of the   Microsoft BASIC Interpreter   manual that is included
with the Microsoft   BASIC   disk.
Type slowly and carefully when entering the program lines.   Check
your work as you go along. Before trying to run a program, save it on
disk and get a printout on paper. Compare the printout line for line
with the listing that appears in this book. A program is like a genetic
code -one bit out of place and a useless mutation may result.
Be especially careful to distinguish the letter   0   from the numeral   0
and the letter l from the number   1.   Whenever you see a pair of quotes in

Reading notes: Source ends mid-sentence at the instruction about pairs of quotes, so the text is truncated

Printed product names: Macintosh · Microsoft BASIC · Apple Imagewriter · Microsoft BASIC Interpreter · Macintosh computer

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-5e45dcfa95fd905d72deb22adee83e66afe12fc3a6b86d7a03d07f8d48aed9e0)

Transcribed text:

Introduction   xiii
a listing, as in   "",   count the number of empty spaces between the quotes
and be sure to type in the same number on your computer.   Sometimes
there are no spaces at all inside the quotes. We call that a null string or
nu$ in the listings, and it is important that such null strings be truly
null (empty).
Some   of the program lines are too wide to fit on a page of this book
so they are continued on the next line with an indentation. When you
come to the end of a line, check to see if the following line is indented.   If
it is, don't press   RETURN   until you have typed in the indented line as
well.
Always type with your keyboard in the lowercase mode. As soon as
you press   RETURN   at the end of the program line, Microsoft   BASIC   will
capitalize and display in boldface those words it recognizes. The resul-
tant capitalization should match the listings shown in this book; if it
doesn't, you probably made a typing error.
Test points are provided for some of the longer projects. To test an
incomplete program, you will often have to enter a few temporary lines,
run the program, and then delete the temporary lines when the test is
complete. When it is time   to   delete the lines, they are presented again,
this time highlighted with gray shading. The text also provides explicit
directions for deleting the test lines.
After making a line-for-line check of your program, try to run it. To
determine whether your version is working or not, compare your results
with the sample screen figures shown in the chapter.
Program Disks
All the programs in this book are available on a 3 1/2-inch disk. Price of
the disk is $35. To order your disk, complete the form and mail it with
your personal check or money order to: The Macintosh Program Facto-
ry™,   Box 137, Hancock, NH   03449.   Allow three weeks for delivery (add
ten days if sending a personal check).
----------- cut along this line -----------
Please send me the Macintosh Program Factory on disk. My $35 payment is enclosed.
___ check __ money order
Address   ________________________
City --------------State ____   ZIP----
The Macintosh Program Factory'", P.O. Box 137, Hancock, New Hampshire 03449

Reading notes: Possible OCR artifacts in '"",' and 'nu$' within the program listing text Ambiguous reading order near the order form fields and the 'Allow three weeks for delivery' note

Printed product names: The Macintosh Program Factory · Microsoft BASIC

Printed prices: $35

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=11)

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-macintosh-program-factory-1985-94c437/1#scan-3877afd58ec2dcf8866324ced0cc9b34c26f401453608294049898fee3006e4b)

Chapter 1

Transcribed text:

Chapter   1
M .... akin····· •......   ... M ......   .
·.   ····•····   ........   g:   ..   ····.·azes
If   you enjoy the challenge of a good maze, consider the task of designing
one. That turns out to be every bit as difficult, and quite a bit more
interesting. In this chapter, we'll explore the process of maze construc-
tion and then program your Macintosh to produce an endless supply of
mind-boggling mazes of varying complexity.
One   way to start a maze is to picture the floorplan of a house with
the walls in place but with no doors.   You   then add doors until there's
just one path between any two rooms in the house. Last of all, you add
an entrance and an exit anywhere you like.
Figure 1-1 shows a 4 X 4 maze. Verify for yourself that there is
exactly one path between any two rooms.   Try   closing the entrance and
exit and making new ones: you will still have a perfectly good maze.
-Constructing Mazes----------
During construction, a maze is divided into the following three types of
rooms:
•   Living quarters (LQ): rooms that are connected by doorways.
1

Reading notes: Garbled characters in maze diagram lines (e.g., 'M .... akin····· •......') are unreadable and omitted. Reading order of the opening diagram fragments is uncertain.

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/63e689f5fa750107e422a0a776e4226833ff619411630398c321e22575550367/Macintosh_Program_Factory_1985.pdf#page=12)
