Guest User

Untitled

a guest
Sep 7th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. >>>
  2. >>> myHand = deal_hand(7)
  3. >>> myHand
  4. {'g': 1, 'f': 1, 'o': 2, 'q': 1, 'v': 1, 'x': 1}
  5. >>> is_valid_word('goof', myHand, word_list)
  6. True
  7. >>> myHand
  8. {'g': 0, 'f': 0, 'o': 0, 'q': 1, 'v': 1, 'x': 1}
  9. >>>
  10. >>> play_game(word_list)
  11. play_game not implemented.
  12. Enter n to deal a new hand, r to replay the last hand, or e to end game: n
  13. ('r',)
  14. ('e',)
  15. ('g',)
  16. ('u',)
  17. ('k',)
  18. ('m',)
  19. ('l',)
  20.  
  21. ('Your hand is:', None)
  22. Type a word from your hand letters, or press "." to end your turnglue
  23. ('That is a real word! Your score is:', 5)
  24. ('r',)
  25. ('k',)
  26. ('m',)
  27.  
  28. ('Your new hand is:', None)
  29. {'r': 1, 'e': -2, 'g': -2, 'u': -2, 'k': 1, 'm': 1, 'l': -2}
  30. ()
  31. Enter n to deal a new hand, r to replay the last hand, or e to end game: e
  32. >>>
Advertisement
Add Comment
Please, Sign In to add comment