public class ScrambledWordPuzzle extends AbstractWordPuzzle
Many scrambled word puzzles have multiple solutions but this class assumes that there is only one solution for the puzzle.
Constructor and Description |
---|
ScrambledWordPuzzle(String solutionWord)
Creates a scrambled word puzzle given the solution word.
|
Modifier and Type | Method and Description |
---|---|
String |
getSolution()
Get the solution for this reverse word puzzle.
|
getPuzzleWord, getSolutions, setPuzzleWord, toString
public ScrambledWordPuzzle(String solutionWord)
solutionWord
- the puzzle wordpublic String getSolution()
getSolution
in class AbstractWordPuzzle
AbstractWordPuzzle.getSolution()