becker.xtras.jotto
Interface IGuessEvaluator

All Known Implementing Classes:
SampleGuessEvaluator

public interface IGuessEvaluator

Evaluate a guess made by the user against the target word. That is, count the number of partial matches and exact matches. See the package overview for more information about matches.

Hints:

Author:
Byron Weber Becker

Method Summary
 MatchCount countMatches(String word1, String word2)
          Count the number of exact and partial matches in a pair of words.
 

Method Detail

countMatches

MatchCount countMatches(String word1,
                        String word2)
Count the number of exact and partial matches in a pair of words.

Parameters:
word1 - one of the words to compare
word2 - the other word to compare
Returns:
an object containing the number of exact and partial matches