'This program was made on Sept. 25th and 26th of 2019 by Ken G.
'Thank you to the QB64.org forum for their support and comments.
begin:
t = 0
e = 0
w = 0
PRINT " Speed Typing Test 2" PRINT " - This program will calculate how many words you can type in 1 minute." PRINT " - It will display 1 word at a time and you must type it correctly to count." PRINT " - If you press a wrong key, it will just go to the next word and that word" PRINT " will not count on your total." PRINT " - Do not press Enter, Back Space, or Space Bar because it will go to the next" PRINT " word automatically." PRINT " - It will not show a score as you go because I don't want to distract" PRINT " your thinking as you type." PRINT " - Your score will be shown at the end of the test." PRINT " - There are 234 5-letter words (which is more than the world record), but if you have" PRINT " mistakes and skip words (or if you are a world record holder), then the words" PRINT " will start over again after the very last word." PRINT " - The words are shown in a different arrangement every time." PRINT " - This is not a professional typing test, so have some fun!" INPUT " Press Enter to start.", st$
'Start the timer.
begin2:
'Put every word in memory.
check:
'See if every word has been used.
w = w + 1
w = 0
olda$(cc) = ""
'Pick a random word and check to see if it's already been used.
olda$(ll) = a$(ll)
tt = 0
b$ = ""
'Display word.
'Here is the INKEY$ loop and also checking your time.
go:
tim3 = tim2 - tim1
c$ = b$
b$ = ""
'Check to see if you got the letter correct. tt is the amount of letters you have typed.
tt = tt + 1
c$ = ""
'Go back to go: to keep typing.
'This is your total score area.
done:
PRINT " Your score is: "; t;
" correct words per minute." PRINT " You had: "; e;
" errors." INPUT " Again (Y/N)"; ag$
'All 234 words that can be used.
words:
DATA "aahed","aalii","aargh","abaca","abaci","aback","abaft","abaka","abamp" DATA "blurt","blush","blype","board","boars","boart","boast","boats","bobby" DATA "cawed","cease","cebid","cecal","cecum","cedar","ceded","ceder","cedes" DATA "doxie","doyen","doyly","dozed","dozen","dozer","dozes","drabs","draff" DATA "ebook","eched","eches","echos","eclat","ecrus","edema","edged","edger" DATA "fixes","fixit","fizzy","fjeld","fjord","flabs","flack","flags","flail" DATA "given","giver","gives","gizmo","glace","glade","glads","glady","glair" DATA "herby","herds","heres","herls","herma","herms","herns","heron","heros" DATA "intro","inure","inurn","invar","iodic","iodid","iodin","ionic","iotas" DATA "juicy","jujus","juked","jukes","jukus","julep","jumbo","jumps","jumpy" DATA "kitty","kivas","kiwis","klick","kliks","klong","kloof","kluge","klutz" DATA "leaps","leapt","learn","lears","leary","lease","leash","least","leave" DATA "maybe","mayed","mayor","mayos","mayst","mazed","mazer","mazes","mbira" DATA "nexus","ngwee","nicad","nicer","niche","nicks","nicol","nidal","nided" DATA "oaths","oaves","obeah","obeli","obese","obeys","obias","obits","objet" DATA "payor","peace","peach","peage","peags","peaks","peaky","peals","peans" DATA "quack","quads","quaff","quags","quail","quais","quake","quaky","quale" DATA "rewin","rewon","rexes","rheas","rheme","rheum","rhino","rhomb","rhumb" DATA "saids","saiga","sails","sains","saint","saith","sajou","saker","sakes" DATA "techs","techy","tecta","teddy","teels","teems","teens","teeny","teeth" DATA "udons","uglis","uhlan","ukase","ulama","ulans","ulcer","ulema","ulnad" DATA "vowed","vowel","vower","voxel","vroom","vrouw","vrows","vuggs","vuggy" DATA "wavey","wawls","waxed","waxen","waxer","waxes","wazoo","weald","weals" DATA "xenon","xeric","xerox","xerus","xylan","xylem","xylol","xylyl","xysti" DATA "yodle","yogas","yogee","yoghs","yogic","yogin","yogis","yoked","yokel" DATA "zooey","zooid","zooks","zooms","zoons","zooty","zoril","zoris","zouks"