Class BadAutoPlayer

java.lang.Object
  extended by AbstractPlayer
      extended by AbstractAutoPlayer
          extended by BadAutoPlayer
All Implemented Interfaces:
IAutoPlayer, IPlayer, java.lang.Iterable<java.lang.String>

public class BadAutoPlayer
extends AbstractAutoPlayer

AutoPlayer that can't find any words. Useful for trying out a game before a good implementation is written.


Field Summary
 
Fields inherited from class AbstractPlayer
myLexicon, myScore, myScoreKeeper, myView, myWords
 
Constructor Summary
BadAutoPlayer()
           
 
Method Summary
 void findAllValidWords(BoggleBoard board, ILexicon lex, int minLength)
          Find all the valid words automatically, found words should be added via the IPlayer interface's add method.
 
Methods inherited from class AbstractAutoPlayer
getName
 
Methods inherited from class AbstractPlayer
add, clear, getScore, initialize, iterator, setView, wordCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface IPlayer
add, clear, getScore, initialize, setView, wordCount
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

BadAutoPlayer

public BadAutoPlayer()
Method Detail

findAllValidWords

public void findAllValidWords(BoggleBoard board,
                              ILexicon lex,
                              int minLength)
Description copied from interface: IAutoPlayer
Find all the valid words automatically, found words should be added via the IPlayer interface's add method.

Specified by:
findAllValidWords in interface IAutoPlayer
Specified by:
findAllValidWords in class AbstractAutoPlayer
Parameters:
board - is the BoggleBoard on which wrods are found
lex - is the lexicon in which words are searched/validated
minLength - of words found by an autoplayer