Example #3
$ python tt.py
Welcome to the Swat Text Twist game!
Make words from the letters. Words must be between 3-7 letters long.
Current Round Score: 0
Letters: remanm
Number of possible words left: 18
Make a word ('g' to give up, 's' to scramble): mane
Congrats, 'mane' is worth 8 points!
Current Round Score: 8
Letters: remanm
Number of possible words left: 17
Make a word ('g' to give up, 's' to scramble): man
Congrats, 'man' is worth 6 points!
Current Round Score: 14
Letters: remanm
Number of possible words left: 16
Make a word ('g' to give up, 's' to scramble): s
Scrambling...you lose 2 points
Current Round Score: 12
Letters: ermnma
Number of possible words left: 16
Make a word ('g' to give up, 's' to scramble): mem
Sorry, not a valid guess.
Current Round Score: 12
Letters: ermnma
Number of possible words left: 16
Make a word ('g' to give up, 's' to scramble): memememememememem
Sorry, not a valid guess.
Current Round Score: 12
Letters: ermnma
Number of possible words left: 16
Make a word ('g' to give up, 's' to scramble): mar
Congrats, 'mar' is worth 6 points!
Current Round Score: 18
Letters: ermnma
Number of possible words left: 15
Make a word ('g' to give up, 's' to scramble): arm
Congrats, 'arm' is worth 6 points!
Current Round Score: 24
Letters: ermnma
Number of possible words left: 14
Make a word ('g' to give up, 's' to scramble): s
Scrambling...you lose 2 points
Current Round Score: 22
Letters: enmram
Number of possible words left: 14
Make a word ('g' to give up, 's' to scramble): s
Scrambling...you lose 2 points
Current Round Score: 20
Letters: ermanm
Number of possible words left: 14
Make a word ('g' to give up, 's' to scramble): g
You gave up!!
Your score for this round is 20
Round details:
You made 6 unique guesses.
You guessed 4 correct out of 18 words.
Your correct guesses were:
['mane', 'man', 'mar', 'arm']
The words leftover were:
['amen', 'are', 'ear', 'earn', 'era', 'mare', 'mean', 'men', 'merman', 'name', 'near', 'ram', 'ran', 'ream']
Your total score so far is 20
Do you want to try another puzzle? ('y' or 'n')y
Current Round Score: 0
Letters: fdoeol
Number of possible words left: 17
Make a word ('g' to give up, 's' to scramble): doe
Congrats, 'doe' is worth 6 points!
Current Round Score: 6
Letters: fdoeol
Number of possible words left: 16
Make a word ('g' to give up, 's' to scramble): s
Scrambling...you lose 2 points
Current Round Score: 4
Letters: elfood
Number of possible words left: 16
Make a word ('g' to give up, 's' to scramble): food
Congrats, 'food' is worth 8 points!
Current Round Score: 12
Letters: elfood
Number of possible words left: 15
Make a word ('g' to give up, 's' to scramble): g
You gave up!!
Your score for this round is 12
Round details:
You made 2 unique guesses.
You guessed 2 correct out of 17 words.
Your correct guesses were:
['doe', 'food']
The words leftover were:
['dole', 'elf', 'fed', 'fled', 'floe', 'flood', 'foe', 'fold', 'fool', 'fooled', 'led', 'lode', 'ode', 'old', 'oleo']
Your total score so far is 32
Do you want to try another puzzle? ('y' or 'n')n
Thanks for playing! You played 2 rounds. Total score was 32
include("style/footer.php"); ?>