becker.xtras.jotto
Class Guess
java.lang.Object
becker.xtras.jotto.MatchCount
becker.xtras.jotto.Guess
public class Guess
- extends MatchCount
Represent one guess that has been made: the word guessed, and the number
of exact and partial matches between that word and the target word.
- Author:
- Byron Weber Becker
Constructor Summary |
Guess(String aWord,
int numExact,
int numPartial)
Construct the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Guess
public Guess(String aWord,
int numExact,
int numPartial)
- Construct the object.
- Parameters:
aWord
- The word that was guessed.numExact
- The number of exact matches when compared with the target.numPartial
- The number of partial matches when compared with the target.
getWord
public String getWord()
- Get the word the user guessed.
- Returns:
- the guessed word.