Macintosh Program Factory 1985
From the originals
12 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
Macintosh PROGRAM FACTORY
Osborne McGraw-Hill Macintosh PROGRAM FACTORY George Stewart
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
PDF page 1
Osborne McGraw-Hill Macintosh™ PROGRAM FACTORY™ George Stewart
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
PDF page 3
The Macintosh™ Program Factory
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
PDF page 4
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
PDF page 5
-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
PDF page 6 · PDF page 2
The image is a plain, entirely blank white page with no artwork, layout elements, or markings visible.
PDF page 7
Table Of Contents
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
PDF page 8
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
PDF page 9
-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
PDF page 10
Macintosh Program Factory
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
PDF page 11
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
PDF page 12
Chapter 1
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