WordWarp Example 3


$ 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: rdzlai

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

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

Your Word: lair
+4
----------------------------------------

 Current Score: 4
Possible Words: ['----', '----', '----', 'lair', '----', '----', '----', '------', '----', '----']
       Letters: rdzlai

Your Word: lizard
+6
----------------------------------------

 Current Score: 10
Possible Words: ['----', '----', '----', 'lair', '----', '----', '----', 'lizard', '----', '----']
       Letters: rdzlai

Your Word: rail
+4
----------------------------------------

 Current Score: 14
Possible Words: ['----', '----', '----', 'lair', '----', '----', '----', 'lizard', '----', 'rail']
       Letters: rdzlai

Your Word: ww
-5
----------------------------------------

 Current Score: 9
Possible Words: ['----', '----', '----', 'lair', '----', '----', '----', 'lizard', '----', 'rail']
       Letters: darzil

Your Word: dial
+4
----------------------------------------

 Current Score: 13
Possible Words: ['----', 'dial', '----', 'lair', '----', '----', '----', 'lizard', '----', 'rail']
       Letters: darzil

Your Word:                # user hit Enter to quit

Game OVER.
Your final score was: 13
Possible Words: ['arid', 'dial', 'laid', 'lair', 'lard', 'liar', 'lira', 'lizard', 'raid', 'rail']



Return to Lab 07
Example 1
Example 2

Back to the CS21 homepage