Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #Add words to this list to include them in the game
  2. 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"]
  3.  
  4. def nextWord():
  5. global score
  6. entry.focus_set()
  7. if entry.get().lower() == words[1].lower():
  8. score += 1
  9.  
  10. entry.delete(0, tkinter.END)
  11. random.shuffle(words)
  12. label.config(fg=str(words[1]), text=str(words[0]))
  13. scoreLabel.config(text="Score: " + str(score))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement