
SYNCHRO-SETTE cassette tape programs for April, 1982.
Each program is recorded twice.
1K side:
#1 – SPIDER-DAN
A graphic skyscraper building is displayed. A small figure starts to climb the building in a random haphazard manner. His motions are somewhat controlled by pressing the (1) key if you want him to move left and the (0) key if you want him to move right.
The idea of the game is to have hime reach the top without knocking out any of the building’s blocks.
Study the use of the (RND) command in the listed program.
#2 – MINEFIELD-1
The program starts with you being required to enter a number no lower than 2. This number represents the difficulty level where (2) is the hardest level.
The game then proceeds with a little graphic man going from the top of the screen to the bottom, planting land-mines. He then re-traces his path and covers the mines. He repeats this procedure a number of times until you are asked HOW MANY MINES did he bury.
The game ends with the correct answer being revealed.
#3 – MINEFIELD-2
Pretty much the same program as MINEFIELD-1 except the little man covers the mines as soon as he burys them so that they are only shown foor an instant. Those with slow reflexes or poor eye-sight may have trouble with this one.
Both MINEFIELD games are excellent for quickening the mental reflexes of younger children.
#4 – RALLY
A random race track is displayed and you try to maneuver a race car down the track without hitting the pylons. The program line [illegible] 25 RAND can be introduced to make the game more difficult but the 1K machine may run out of memory before the car has run its course.
The vehicle is somewhat controlled by pressing the (1) key to make it move left and the (0) key to make it move right.
#5 – TWODATES
This program will find the difference between two dates in the number of months, days and years.
The dates must be entered in the proper 8 character format such as March 5th of 1982 would be entered as 03/05/82.
This program works on the principle of 12 – 30 day months in a 360 day year.
Even though it is not exact, it would be useful as a routine in an Invoice program that could determine if unpaid bills had exceeded a specified time limit.
#6 – RORSCHACH
A computer version of the old ink-blot test. Look at the pattern depicted on the screen and determine what it looks like to you.
The pattern will continue to self-draw until the computer runs out of memory.
A good example of the ZX-81’s capability in random graphics.
#7 – INSTRING
A program that allows the user to enter a large group of characters and the asks for a smaller group of characters.
It will then search the through the large group looking for the small group and when it finds it, the positions of the first and last character of the small group will be located in the large group. The numbers at the top of the screen serve as reference points to these locations.
This type of routine is used as a function of Word Processing programs to locate and change words or groups of words in a written text.
#8 – NAMESORT
This program demonstrates the computer’s ability to sort groups of characters or numbers. The computer sorts the entries from the left most character to the right most.
If the user enters a two digit number and a three digit number such as 50 and 101, the 101 will appear before the 50 even though 101 is larger than 50. the reason for this is that the first digit, (1) of the 3 character entry is smaller that the first digit, (5) of the 2 character entry.
In this program, the entries are treated as STRING VARIABLES which means you can enter either alphabetic characters or numbers.
If you want to sort numbers with this program, enter enough empty spaces before the numbers that are smaller than the largest number to be entered so that all the entries have the same amount of digits.
The program will allow ten entries of a maximum of 8 characters or digits per entry.
16K side
#1 – BOUNCING-BOMBS
The computer creates a random city of building blocks. A bomber aircraft then travels over the city from left to right and then from right to left. Any time you want to drop a bomb, just press the (Z) key. The bomb will then fall on a 45 degree angle in the direction the plane is traveling.
Only one bomb may appear on the screen at a time.
If the bomb strikes one of the building blocks, it will disappear and and you will have a point added to your score for each block as it disappears.
At first of course, this is very easy to do but as the game progresses it becomes more and more difficult until the last few blocks are almost impossible to remove.
Each time a bomb is dropped and no blocks are removed, the computer records a miss. If you get three misses, the game is over.
You have to remove at least 90% of the blocks before the computer considers you better than a Patzer. Different messages are displayed for levels above 90%.
I must have played over 30 games and never rose above the level of Patzer, and I wrote the game.
I therefore did not write a routine in the game that will recognize if the player has a perfect game and has not used all of the misses.
The game will therefore continue until all the misses are used up even though the player may have a perfect game.
I did this purposely as a programming excercise to the player to determine what should be entered so that as soon as a perfect score is achieved, the game will be over and the proper message will be displayed (Hint – it can be entered in a single additional program line added to the program).
The beginning player may also want to allow more missed shots. This can be done by finding the program line that contains the variable that allows only 3 missed shots and changing it to a higher number. This is another programming excercise I leave to you (why not change the program so that it allows user input to set the difficulty level?).
#2 – BIORHYTHM
This program asks the user to enter the pertinent information and then proceeds to chart the Biorhythm curves on the screen.
All date information must be entered as numbers.
The (C) curve stands for COGNITIVE which represents the person’s mental awareness or intellectual perception state.
The (P) curve stands for PHYSICAL which represents the person’s energy levels.
The (S) curve stands for SENSITIVITY which represents the person’s emotional level.
The dark line down the center of the curves represents the point of zero as each of these curves intersect it. At this point any level may be thought as being in a null state or in limbo. Critical days occur, so the theory goes when all 3 curves approach or equal zero.
If a person has all 3 curves on the extreme (+) side, all sorts of creativity may occur and if all 3 curves are on the extreme (-) side, listlessness and procrastination can be expected.
If however a person is high in one area and low in another such as being high in the (C) or intellectual curve but low in the (P) or energy state, diverse effects might happen such as being in a state of high creativity but lacking the get-up and go to do anything about it. Sort of a “flesh is willing but the spirit is weak” sort of thing.
I claim no responsibility to anyone’s interpretation of the results of this program but I hope you have a lot of fun with it.
This program by the way, utilizes the DATA, READ and RESTORE routines as mentioned in the article on that subject in this issue.
3 – BASECON
For you machine language and assembly language addicts, the program you have been looking for.
For you beginners, a chance to learn a little about the way a computer performs its mathematical computations.
We have all been taught in school how to perform our mathematical computations with the decimal method of Arithmetic. Before I lose some of you, what I mean is that the decimal system uses the number (10) as a base.
The numbers from (0) to (9) have one digit and the numbers from (10) to (99) have two digits and the numbers from (100) to (999) have three digits and so on.
The (1) in the one digit numbers represents 10 to the first power.
The (2) in the two digit numbers represents 10 to the second power or 10 squared or 100.
The (3) in the three digit numbers represents 10 to the third power or 10 cubed or 1000 and so on.
This is fine for us but computers can’t think in terms of using 10 as a base because there are numbers both smaller and larger than 10 that cannot be represented by adding multiples of 10 together but all numbers can be represented by adding multiples or 2 to certain powers together (2 to the 0 power = 1). An example follows:
11 = 2[3 + 2[1 + 2[0 or 11 = 8 + 2 + 1
Computers think in terms of a mathematical system that starts with 2 as a base. This is called BINARY MATHEMATICS.
Most computers use 16 as a base. This is called HEXIDECIMAL MATHEMATICS. The 16 characters that represent the first 16 numbers in HEXIDECIMAL are (0 1 2 3 4 5 6 7 8 9 A B C D E F).
What this program allows the user to do is to change a number from one base to another. Unlike programs designed to specifically change from only one base such as the decimal (10) base to only one other base such as HEXIDECIMAL, this program allows any bases to be entered from (2) to (16) for either the original or the converted number.
Any number can be entered, no matter how long, but the accuracy is only good to eight digits.
If a wrong number is entered for either a base or the original number, the appropriate error message will be displayed and the program will automatically recycle.
To exit the program, enter a letter instead of a number when asked for the base number.