becker.xtras.jotto
Class Guess

java.lang.Object
  extended by becker.xtras.jotto.MatchCount
      extended by 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.
 
Method Summary
 String getWord()
          Get the word the user guessed.
 
Methods inherited from class becker.xtras.jotto.MatchCount
getExact, getPartial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getWord

public String getWord()
Get the word the user guessed.

Returns:
the guessed word.