The computer adventure simulations you will develop in this tutorial are based on historical personalities like Marco Polo, Amelia Earhart, and on historical events like the Tour de France, The Longest Automobile Race 1908, and the 1847 Oregon Trail. We have also included some fiction adventure simulations like Voyage to Neptune and the Hong Kong Hustle. All of these adventure simulations were originally written by David H. Ahl whose computer programming books helped start the personal computer programming revolution.
All the original classic adventure simulations are included: Marco Polo, Westward Ho!, The Longest Automobile Race, The Orient Express, Amelia Earhart: Around the World Flight, Tour de France, Subway Scavenger, Hong Kong Hustle, and Voyage to Neptune.
WRITING A SIMULATION
When writing a large and complex program, the first question always is where to start? The answer is, start with a pad of paper and DON'T turn on the computer.
Writing a computer simulation of some real or imaginary system is not especially difficult. The much bigger job is gathering the data and learning as much as possible about the system so you can define the relationships among its various facets. Once you understand the whole system, you must then break it down into the smallest possible pieces, analyze each piece in depth, determine how to model it, and combine the pieces back into the whole.
In developing the algorithms and writing the programs for each piece, you must determine the most accurate and efficient way to proceed. Is it an exact process that can be represented by a mathematical formula? Is the process continuous or discontinuous? Is it ever interrupted abruptly? Are there random elements involved?
An enormous amount of time must be spent testing each piece. Does the simulation behave in a sensible way? What happens at various extremes? These same questions must be asked again and again as all of the pieces are combined into the whole system.
Like most real-world systems, most of the simulations in this book are a combination of well-defined processes and random elements. For example, Amelia Earhart's airplane flies and consumes fuel according to well-defined physical principles. On the other hand, in Southeast Asia in July, she has a 30% chance of running into a torrential rainstorm. If it occurs, the problems she faces will be quite different from those on a sunny day.
There are five distinct parts to each of the simulations: an introduction to the game, historical background, program notes, program variables, and the program listings. I will encourage you to read The Story (historical background) before taking each computerized journey. By doing so, you will have a much better understanding of the original journey, and you will make better decisions as you go along.
Later, if you want to see why the program works the way it does, examine how a routine operates, or even modify the program, the program notes and the list of variables will serve as your guide. You may also find in these programs many interesting and useful routines that you can use in programs of your own.
The ten simulations in this book are rather diverse. Some require many decisions on the part of the player, and some require relatively few decisions. In some, they are easy to make, but random hazards make it difficult to finish the journey. In others, the decisions are more difficult, but the journey itself is easier.
The programs are arranged in chronological order ranging from Marco Polo (1271) to Voyage to Neptune (2100).
ADVENTURE SIMULATION DESCRIPTIONS:
Westward Ho! simulates a six-month journey over the Oregon Trail in 1850. It uses the same framework as Marco Polo but, because you have fewer resources, it is slightly more difficult to finish the trip.
The Longest Automobile Race simulates the 1908 auto race from New York to Paris (east to west). In those days, the cars were unreliable, the roads were nothing more than cart tracks, and, as always, the weather was unpredictable. It is not too difficult to reach Paris, but quite difficult to win the race.
The Orient Express simulates a mystery case aboard the famous train in 1923. You will almost always complete the trip, but the mystery is extremely difficult to solve.
Amelia Earhart Around the World 1937 Flight simulates the around-the-world flight attempt of the famous aviatrix in 1937. If you load enough fuel and pay attention to maintenance and repairs, you will have no trouble reaching Southeast Asia. From there on, it is tough going.
Tour de France simulates the famous three-week bicycle race. Along with intelligent decisions, this game requires manual dexterity on the keyboard. It is reasonably easy to finish, but quite difficult to win.
Appalachian Trail simulates the trek of a hiker walking from Georgia to Maine. Preparation is half the key to completing the hike, but sensible decisions along the Trail about eating, walking speed, and walking hours are important also.
Subway Scavenger simulates the rounds of a messenger using the New York subway system. During the first few plays of the game, you must develop a map of the subway system. Even with the help of a map, you will find this an extremely challenging game to finish.
Hong Kong Hustle simulates the Tai Pan collecting bags of gold from various locations around Hong Kong. Using the same framework as Subway Scavenger, you must first develop a map, then go for the gold.
Voyage to Neptune simulates an imaginary journey to Neptune in the year 2100. It is a game of trading and tradeoffs. It is not difficult to get to Neptune; it is very difficult to do so in six years or less and have enough fuel left for the return trip.
The complete downloadable Microsoft Word based E-Book includes all the completed .sb project source code files in a compressed .zip file so you don’t even have to re-type or cut and paste the Small Basic source code in yourself if you don’t want to. We also included all the original “GOTO” subroutines for your nostalgic programming enjoyment.
________________________________________________
"Philip Conrod has done a great job porting my original BASIC COMPUTER ADVENTURES book to the latest version of Microsoft Small Basic. The Small Basic Computer Adventures play just like my original adventures. I highly recommend Philip Conrod’s new “Small Basic Computer Adventures” book to both kids and adults!“ - David H. Ahl, Founder of Creative Computing
“Philip Conrod has a passion for writing tutorials and books aimed at beginner programmers and he’s done an excellent job of covering all the fundamentals of Small Basic programming. He has also published a faithful port of David Ahl’s Computer Adventures for Small Basic. Check it out for some cool game ideas!” - Vijaye Raji, Creator of Microsoft Small Basic