Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>
- >>> myHand = deal_hand(7)
- >>> myHand
- {'g': 1, 'f': 1, 'o': 2, 'q': 1, 'v': 1, 'x': 1}
- >>> is_valid_word('goof', myHand, word_list)
- True
- >>> myHand
- {'g': 0, 'f': 0, 'o': 0, 'q': 1, 'v': 1, 'x': 1}
- >>>
- >>> play_game(word_list)
- play_game not implemented.
- Enter n to deal a new hand, r to replay the last hand, or e to end game: n
- ('r',)
- ('e',)
- ('g',)
- ('u',)
- ('k',)
- ('m',)
- ('l',)
- ('Your hand is:', None)
- Type a word from your hand letters, or press "." to end your turnglue
- ('That is a real word! Your score is:', 5)
- ('r',)
- ('k',)
- ('m',)
- ('Your new hand is:', None)
- {'r': 1, 'e': -2, 'g': -2, 'u': -2, 'k': 1, 'm': 1, 'l': -2}
- ()
- Enter n to deal a new hand, r to replay the last hand, or e to end game: e
- >>>
Advertisement
Add Comment
Please, Sign In to add comment