Interface IWordOnBoardFinder

All Known Implementing Classes:
BadWordOnBoardFinder

public interface IWordOnBoardFinder


Method Summary
 java.util.List<BoardCell> cellsForWord(BoggleBoard board, java.lang.String word)
          Return a list of cells on the given board such that the i-th element of the list correponds to the i-th character of the string as found on the board.
 

Method Detail

cellsForWord

java.util.List<BoardCell> cellsForWord(BoggleBoard board,
                                       java.lang.String word)
Return a list of cells on the given board such that the i-th element of the list correponds to the i-th character of the string as found on the board. Returns an empty list if the word cannot be found on the board.

Parameters:
board - is searched for the given word
word - is being searched for on the board
Returns:
list of cells on the supplied board that correspond to the word, an empty list should be returned if the word cannot be found on the board