wordFinderPuzzle
Interface IWordFinder


public interface IWordFinder

An interface to be followed by programs implementing the Word Finder Puzzle. In addition to these methods, the class should have a constructor with one string argument: the name of a file from which the puzzle is to be read.


Method Summary
 void printMatrix()
          Print the matrix of characters of the puzzle, one line per row.
 void printWords()
          Print the words to be looked for in the puzzle, in alphabetical order.
 void solvePuzzle()
          Solve the puzzle and print the solution.
 

Method Detail

printMatrix

public void printMatrix()
Print the matrix of characters of the puzzle, one line per row.


printWords

public void printWords()
Print the words to be looked for in the puzzle, in alphabetical order.


solvePuzzle

public void solvePuzzle()
Solve the puzzle and print the solution. The solution has one line for each word to be found, with the words in alphabetical order. For each word, tell where the word was found. "Where" can be given as a pair of coordinates, telling where the word starts (row and column) and where the word ends (row and column).