|
The following article was printed in March 1988 of the magazine „8000 PLUS".
|
A BASIC program for a slide game
|
|
|
Slide Game
by A King
|  |
| |
As if you didn't spend enough time on your PCW as it is,here's the chance to while away an infinite number of hours with this simple but addictive game.
It's a version of the classic sliding-square children's puzzle.
You are given a series of letters in random order on sliding panels in a rectangular frame, and of course there is only one space you have to do is shuffle the letters into the right order.
The advantage with this computer version of the game is that you can vary the size of your rectangle up to 10 squares by 6 squares.
It starts by filling up the tiles randomly with capital letters and when it runs out of them it starts on the lower case alphabet.
After that it even goes on to use other vague symbols like '{'s and '/'s.
Set yourself the challenge of which order you are going to arrange the tiles in - alphabetical, reverse alphabetic, making a word, whatever you like;
you're only playing against yourself.
The only problem in typing the listing is line 220 - the two ↑ symbols are up-arrows, which you get with [EXTRA]+U.
Once running it is simple to use;
the program asks you first for a 'seed'.
This is an integer (a whole number from 1 to 32767) which BASIC'S RANDOMIZE command takes and uses to make sure you get a properly random pattern.
It will then ask you for the size you want the frame to be.
You just type in two numbers separated by a comma.
The first number can be up to 10 and the second up to 6.
After a short pause for thought the PCW prints out the letters.
Using the cursor keys, you move the cursor to one of the letters adjoining the space, press the space bar and the letter moves into the space
When you have met your self-appointed challenge of getting the tiles into the order you want, (or you want to give up!) you simply press [STOP] to get out of the program.
Be warned - unless you start with a simple two by two frame you could be in for some sleepless nights.
HTML customization by
Werner Cirsovius
December 2014
© 8000 PLUS