What it is:
This program is a mini-game. A randomly generated 6 letter word will appear on screen, and you have a certain amount of time (specified by the user) to type it in. If correct, the time gets shorter, and you do it again! It has 3 difficulties. Easy, hard, and Insane. (More details in features section).
How to use it:
Just copy the text below, paste it into the terminal, and run it! It will handle creating the files it needs.
Features:
Three difficulties:
- Easy: Not case-sensitive. Only Letters. Just copy!
- Hard: Case-sensitive. Only letters.
- Insane: Case-sensitive. Letters, numbers, symbols. Good luck!
Spoiler
function easyQuestion()
local letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
local question = {letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)]}
return question[1]..question[2]..question[3]..question[4]..question[5]..question[6]
end
function hardQuestion()
local letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
local question = {letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)]}
return question[1]..question[2]..question[3]..question[4]..question[5]..question[6]
end
function insaneQuestion()
local letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", ":", "{", "}", "[", "]", "!", "@", "#", "$", "%", "%", "^", "&", "*", "(", ")", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "/", "\\"}
local question = {letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)], letters[math.random(1, #letters)]}
return question[1]..question[2]..question[3]..question[4]..question[5]..question[6]
end
Known bugs:
Spoiler
No known bugs! Yay!Changelog:
Spoiler
v1.0- Release!
- Minor bug fix with parallel functions.
- Changed directory making command.
- Fixed VERY minor issue making the pastebin herder to read.
Download:
pastebin get AH002ptP quicktype
http://pastebin.com/AH002ptP
Please report any bugs or suggestions in this thread and I will do my best to accommodate you. Thank you and enjoy QuickType!