jdorothy/WordScramble — Issue #7: Were multiple words selected?
Author: jdorothy
Created: 2011-11-08 08:04:23+00:00
State: open

The game should be able to tell if multiple words are contained in one selected word. For example, if you select the word STAND, you also select the words TAN, AN, and AND.

If this isn't a valid word, we don't care.

If this is a valid word, however, we probably need an n^2 search of the selected string to compare each possible substring against the word list for the game.

Maybe this should be a separate method that takes a String and returns a Vector of all of the words in that String (even if it's only 1)? Then you could iterate through the Vector to cross each word off the list and calculate the score.