|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgames.jotto.players.JottoGuesser
games.jotto.players.ComputerGuesser
games.jotto.players.SmartComputerGuesser
public class SmartComputerGuesser
This is the Computer Guesser class.
The method processHumanGuess
is called when the human is
guessing the model's secret word. The model responds with the number of
letters in common with the secret word (by sending this number back to the
view-controller).
Field Summary |
---|
Fields inherited from class games.jotto.players.ComputerGuesser |
---|
myGuess, myWordListCopy |
Fields inherited from class games.jotto.players.JottoGuesser |
---|
myConstants, myJottoModel, myMaxGuesses, myNumberOfGuesses, myWord, myWordList |
Constructor Summary | |
---|---|
SmartComputerGuesser(int maxGuesses,
IJottoModel currentJottoGame,
java.util.ArrayList<java.lang.String> wordList)
|
Method Summary | |
---|---|
protected void |
computerGuessesWord()
|
Methods inherited from class games.jotto.players.ComputerGuesser |
---|
newGame, process, tellModelWhosePlaying |
Methods inherited from class games.jotto.players.JottoGuesser |
---|
commonCount, displayNumberOfGuessesLeft, getRandomWord, revealAnswer, revealHint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmartComputerGuesser(int maxGuesses, IJottoModel currentJottoGame, java.util.ArrayList<java.lang.String> wordList)
Method Detail |
---|
protected void computerGuessesWord()
computerGuessesWord
in class ComputerGuesser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |