CS35: Data Structures and Algorithms

Lab 8: Sample Output

$ ./scrabbleAssistant
Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 1
Which word would you like to spellcheck? quilt
"quilt" is a valid word.

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 1
Which word would you like to spellcheck? quilterrific
"quilterrific" is not a valid word.

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 1
Which word would you like to spellcheck? QUILT
"quilt" is a valid word.

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 2
Which word would you like to use? eta
The anagrams of "eta" are:
    ate
    eat
    eta
    tea

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 2
Which word would you like to use? ATE
The anagrams of "ate" are:
    ate
    eat
    eta
    tea

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 2
Which word would you like to use? leab
The anagrams of "leab" are:
    able
    bale

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 2
Which word would you like to use? bl
There are no anagrams of that "word".

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 3
What letters do you have available? table
You can make the following words:
    bleat
    table
    late
    able
    tale
    belt
    teal
    bate
    beta
    abet
    beat
    bale
    alb
    bet
    lea
    eat
    tea
    ate
    ale
    let
    lab
    eta
    tab
    bat
    be
    la
    at
    a
    b
    e
    t
    l

Menu:
  1) Spellcheck a word
  2) Get anagrams of a word
  3) Get valid words from tiles
  0) Exit
Enter your choice (0-3): 0
Goodbye!