java.lang.Object WordSearchSolver
public class WordSearchSolver
Word Search Puzzle Solver. Finds the words in a word search puzzle, given the puzzle and a list of words
Constructor Summary | |
---|---|
WordSearchSolver(int size,
char[][] puzzleboard,
java.util.ArrayList<java.lang.String> words)
Construct a Word Search puzzle solver. |
Method Summary | |
---|---|
java.util.ArrayList<PuzzleWord> |
findwords()
Find the location of words hidden in a puzzle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordSearchSolver(int size, char[][] puzzleboard, java.util.ArrayList<java.lang.String> words)
size
- dimension of puzzle, i.e., the length of a rowpuzzleboard
- a 2D grid of letters in the puzzle, starting at position [1,1].
The first row and first column of the array are unused.words
- the list of words to find in the puzzleMethod Detail |
---|
public java.util.ArrayList<PuzzleWord> findwords()