import Words import User import Text2Speech import Score import FileIO #test data wordList = ["test", "test2", "test3"] words = Words.Words() user1 = User.User() speech = Text2Speech.Text2Speech() score = Score.Score() file = FileIO.FileIO() testChoice = input("q)uit, anything else to continue: ") while (testChoice.lower() != "q"): word = words.getRandVal(wordList) userGuess = user1.GetStrInput("Enter your answer to :" + word) userScore = score.ComputeScore(userGuess, word) print("Score:", userScore) print("Writing score to file") file.Write2CSV("data.csv", userScore) testChoice = input("q)uit, anything else to continue: ")
def main(): words = Words.Words() words.word_length = get_word_length() words.set_words_with_length(words.word_length) loop(words)