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.
- Byron Weber Becker
Construct the object.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Guess(String aWord,
- Construct the object.
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.
public String getWord()
- Get the word the user guessed.
- the guessed word.