Interface I_WordSource
- All Known Implementing Classes:
- NetWordClient, Wordlist
public interface I_WordSource
WordSource is a source of secret words for word puzzle games like Hangman.
The interface defines a single method that returns a secret word.
The mechanism by which the secret word is obtained is defined by
the implementor.
Method Summary |
java.lang.String |
getSecretWord()
Obtain a secret word from some word source. |
getSecretWord
java.lang.String getSecretWord()
- Obtain a secret word from some word source.
- Returns:
- String the word which the player tries to guess