|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbecker.xtras.jotto.SampleGuessEvaluator
public final class SampleGuessEvaluator
A sample implementation of the guess evaluator. Students may write their
own version to use in Jotto by implementing IGuessEvaluator
.
Constructor Summary | |
---|---|
SampleGuessEvaluator()
Construct a guess evaluator object |
Method Summary | |
---|---|
MatchCount |
countMatches(String word1,
String word2)
Count the number of exact and partial matches in a pair of words. |
static void |
main(String[] args)
Test the class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleGuessEvaluator()
Method Detail |
---|
public MatchCount countMatches(String word1, String word2)
IGuessEvaluator
countMatches
in interface IGuessEvaluator
word1
- one of the words to compareword2
- the other word to compare
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |