games.jotto.players
Class SmartComputerGuesser

java.lang.Object
  extended by games.jotto.players.JottoGuesser
      extended by games.jotto.players.ComputerGuesser
          extended by games.jotto.players.SmartComputerGuesser

public class SmartComputerGuesser
extends ComputerGuesser

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).

Author:
vr28, jtl7

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

SmartComputerGuesser

public SmartComputerGuesser(int maxGuesses,
                            IJottoModel currentJottoGame,
                            java.util.ArrayList<java.lang.String> wordList)
Method Detail

computerGuessesWord

protected void computerGuessesWord()
Specified by:
computerGuessesWord in class ComputerGuesser