Tee-off for a day on the links, but be prepared for a rough time
Fancy a day on the links? You don't have to go further than your Electron with this version of Golf by Roland Waddilove.
See how many shots it takes you to get round the course. There are bunkers, lakes and lots of rough all waiting for you to tee off.
It's easy to play - all the instructions are in the game. You can go round the course by yourself or have up to four companions playing against you.
So type it in and drive off. But be prepared for a rough time if your game is under par.
Number of players
Stores whether a player has holed his ball or not
How many shots each player has made
x,y coordinates of each player's position
Stores whether a player is in a hazard or not
Number of hole
Used in loops
Temporary x,y coordinates of player's position
Which way the ball is to be hit, 1-8
How far the ball is to be hit, 1-200
Whether a ball is lost or not
Alter the number of holes played, or add a new procedure PROCnumber-of-holes to ask how many holes you want to play.
Ask whether you want to play again when the game is over. See whether you can print a flag next to each player's ball when it is his turn, to show where it is.
Defines the characters used in the program, and the envelope used. Switched off the cursor keys, auto repeat and ESCAPE. Redefines the BREAK key.
Prints the instructions and shows the characters used
Turns off the cursor, defines a graphics window for the course and sets colours 9-13 to flashing black and white so the ball can be seen on any background. Inputs the number of players and sets up the arrays used
Calls PROCcourse to colour the course green, PROCtrees to draw the trees and PROCfairway to draw the fairway which is made up of small yellow triangles. There is a 1 in 5 chance of calling PROClake to draw a lake. Prints the hole and the flag.
Sets the start position() for all the playerrs, that are not in the hole or in a hazard so hole()=FALSE. For each player PROCshot is called if not in the hole until all the players are in the hole.
Calls PROCinput-direction, PROCinput-distance, PROCcalculate-point to find where the ball lands and PROChit-ball to draw a line to the new position
Must be 1-8
If in-hazard() then the distance is random up to what you type in
On direction% GOTO is used to select the correct calculation to work out the ball's new position
Draws a line to the new position and calls PROCcheck-position to find out where the ball has landed
Prints out each player's score
Restores the auto-repeat, cursor keys and ESCAPE
GUESS THE WORD
By Pete Davidson
In GUESS THE WORD, your Electron will think of a word and it's then up to you to guess what it is.
You start with a score of 10. If you have no idea what the word is, pressing RETURN will display another one of its letters, but loses you points.
You don't lose points for wrong guesses, but you do for guesses that are the wrong length.
You're not stuck with the words we give you. You can put your own in the DATA lines at the end of the program.
But remember that the computer will automatically take the first third of the list as easy, the next third as medium and the last third as hard.
If you want mroe than 100 words total, you must also change the DIM in line 250.
Answer to questions
Number of tries
Letter being given to you
Number of words
Position of letter in W$
Running total score
Array of words
Prints out the instructions
Initialises the variables and reads in the words
You enter your option (easy, medium, hard) and this procedure selects a word from the appropriate third of the data. It then prints the correct number of dashes on the screen
Takes in your guess of the word
Selects a letter (if requested) and prints it in the appropriate position
Checks your guess against the selected word
Prints your score and average at the top of the screen
Prints out the score details at the end of the game
SOLITAIRE is the Electron version of the age-old game of logic and patience.
Run the program and your screen will display the solitaire board and its pegs. Just tell the Electron which peg you want to move - the instructions are in the game - and it wll do it for you.
It will also tell you if you try an illegal move.
And if you decide you can't solve the puzzle, just press ESCAPE and your micro will tell you how you've performed.
It's not hard to play but it is hard to solve. And you'll find it both amusing and addictive.
Electron SOLITAIRE will still be testing your brian long after you've grown tired of blasting aliens.
Electron User 1.10 is Item ID 3489 in our database. Last modified on Saturday 19th October 2019 at 09:24:27 PM.
Spotted a typo or inaccuracy in the instructions for this item? and we'll fix it up at once!