
16K Cassette or Disk
by William Abell, Jr.
Have you ever spent hours typing in one of the very good programs provided in ANALOG, because your typing ability was at or near zero? This program may be able to help you. It provides you with a screen full of random words to allow you to practice your typing technique. The score, printed at the bottom of the screen after each time trial, provides an incentive to improve both your speed and accuracy.
When the program is run, it will first display a title screen, then an introduction screen which explains how to use the program. At the bottom of the screen is the prompt to press the START button to begin. As soon as the button is pressed, the screen goes blank, while the computer makes up random length words. A few seconds later, the screen comes alive again with seven lines of text -- which could be a message in secret code or a foreign language. In reality it is neither, simply characters chosen at random by your Atari computer.
The cursor is positioned directly under the first character of the first line, ready to make its journey to the bottom right of your screen. As soon as you type the first character, the computer stopwatch is started, so that your typing speed can be calculated. The computer also keeps track of the errors that you make as you type, so that your accuracy can be calculated, too. As you type the last character of each line, the cursor is automatically positioned under the first character of the next line of text.
If you make an error, do not attempt to go back and correct it. All keys are disabled except for the letter keys and the spacebar, so any attempt at correction would be fruitless. As soon as the last character is typed, the computer looks at its stopwatch, computes your speed and displays it on the screen. The percent of characters typed correctly is also displayed.
To try again, simply press the START button and, in a few seconds, a brand new screen full of text will be displayed. To end the program, you must press the BREAK key.
As you become proficient at typing the alphabet, you may want to expand the program to include other characters. The program is well documented, so you should have no trouble customizing it to your own desires. For example, if you wanted to practice typing numbers, you could change the second statement in Line 150 to: T=RND(0)*9+48 and Line 410 to: IF K<48 OR K>57 THEN 380. The change to Line 150 alters the ATASCII codes randomly generated to those between 48 and 57, which corresponds to all the numbers from 0 to 9. The change to Line 410 alters the values of the ATASCII codes accepted from the keyboard to numbers only, plus the spacebar which is accepted on Line 400.
Those wanting to get really ambitious might consider modification of the program, so that it randomly generates real words, rather than words made up of random characters. One way to accomplish this is to load words of different lengths into a pseudo-table, which is then accessed randomly and loaded into the string, T$.
10 DATA 335,81,610,121,763,765,769,679
,267,778,773,784,780,366,172,8043
160 DATA 271,212,654,438,306,783,906,7
89,376,4,849,816,804,158,782,8148
310 DATA 265,520,496,727,797,145,803,5
50,581,439,668,753,753,277,732,8506
460 DATA 802,72,808,4,293,356,844,755,
613,964,329,524,866,145,788,8163
610 DATA 249,794,263,854,851,637,652,9
18,618,790,875,796,447,26,761,9531
760 DATA 540,911,205,788,674,328,307,6
04,4357