WordWarp Example 2


$ python ww.py

  Welcome to Word Warp v0.1!

  Find as many words as you can from the given letters.
  Only words of 4 or more letters count!
  Longer words are worth more points:

        4 letters.....4 points
        5 letters.....5 points
        6 letters.....6 points

  Hit the ENTER key if you want to quit.
  Enter WW to shuffle the given letters (and lose 5 points).
  

 Current Score: 0
Possible Words: ['----', '----', '------', '----', '-----', '-----', '----', '----']
       Letters: oaridh

Your Word: hair
+4
----------------------------------------

 Current Score: 4
Possible Words: ['----', 'hair', '------', '----', '-----', '-----', '----', '----']
       Letters: oaridh

Your Word: hair
You already guessed that one!
----------------------------------------

 Current Score: 4
Possible Words: ['----', 'hair', '------', '----', '-----', '-----', '----', '----']
       Letters: oaridh

Your Word: oars
Not a valid word.
----------------------------------------

 Current Score: 4
Possible Words: ['----', 'hair', '------', '----', '-----', '-----', '----', '----']
       Letters: oaridh

Your Word: dhiro
Not a valid word.
----------------------------------------

 Current Score: 4
Possible Words: ['----', 'hair', '------', '----', '-----', '-----', '----', '----']
       Letters: oaridh

Your Word:                   # user hit Enter to quit

Game OVER.
Your final score was: 4
Possible Words: ['arid', 'hair', 'hairdo', 'hard', 'hoard', 'radio', 'raid', 'road']

Return to Lab 07
Example 1
Example 3