$ python3 twist.py
=====================================================
| Welcome to Text Twist! |
| |
| Here's how to play: |
| We will give you a set of six letters and you |
| find all the words that can be made using only |
| the letters in the set, using each letter at |
| most one time in the word. |
| |
| Enter q to quit and see all the answers |
| Enter t to shuffle the letters |
| |
| You get 3 points for every 3 letter word guessed |
| 4 points for every 4 letter word guessed |
| 5 points for every 5 letter word guessed |
| ... |
| |
| Good luck! See if you can find them all! |
=====================================================
--- --- --- --- ---
--- --- --- --- ---
---- ---- ---- ---- ----
---- ---- ------
Score: 0 Words found: 0
Your letters are: CBREUH
Enter a word (q to quit, t to shuffle): cub
--- cub --- --- ---
--- --- --- --- ---
---- ---- ---- ---- ----
---- ---- ------
Score: 3 Words found: 1
Your letters are: CBREUH
Enter a word (q to quit, t to shuffle): cube
--- cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- ------
Score: 7 Words found: 2
Your letters are: CBREUH
Enter a word (q to quit, t to shuffle): cherub
--- cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- cherub
Score: 13 Words found: 3
Your letters are: CBREUH
Enter a word (q to quit, t to shuffle): cheer
Not a valid word
--- cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- cherub
Score: 13 Words found: 3
Your letters are: CBREUH
Enter a word (q to quit, t to shuffle): t
--- cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- cherub
Score: 13 Words found: 3
Your letters are: ERBUCH
Enter a word (q to quit, t to shuffle): bur
bur cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- cherub
Score: 16 Words found: 4
Your letters are: ERBUCH
Enter a word (q to quit, t to shuffle): s
Word must be at least 3 letters
bur cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- cherub
Score: 16 Words found: 4
Your letters are: ERBUCH
Enter a word (q to quit, t to shuffle): valid
Not a valid word
bur cub --- --- ---
--- --- --- --- ---
---- cube ---- ---- ----
---- ---- cherub
Score: 16 Words found: 4
Your letters are: ERBUCH
Enter a word (q to quit, t to shuffle): q
Quitting game
Final score: 16
Here are all the words:
bur cub cue cur her
hub hue rec rub rue
chub cube curb cure ecru
herb rube cherub