Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Add words to this list to include them in the game
- words = ["Games","Development","Keyboard","Speed","Typer","Anything","Aplha","Zealous","Accurate","Basics","Shortcut","Purpose","Window","Counter","Fortress","Modification","Computer","Science","History","Football","Basketball","Solid","Phantom","Battlefield","Avdvanced","Warfare","Download","Upload","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Discomobobulation","Liberated","Assassin","Brotherhood","Revelation","Unity","Syndicate","Victory"]
- def nextWord():
- global score
- entry.focus_set()
- if entry.get().lower() == words[1].lower():
- score += 1
- entry.delete(0, tkinter.END)
- random.shuffle(words)
- label.config(fg=str(words[1]), text=str(words[0]))
- scoreLabel.config(text="Score: " + str(score))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement