Interface IAutoPlayer

All Superinterfaces:
IPlayer, java.lang.Iterable<java.lang.String>
All Known Implementing Classes:
AbstractAutoPlayer, BadAutoPlayer, BoardFirstAutoPlayer, LexiconFirstAutoPlayer

public interface IAutoPlayer
extends IPlayer

Add method for auto/computer player to the standard player interface. An autoplayer will find words on a board using a lexicon via the single method exported by this interface.


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 interface IPlayer
add, clear, getName, getScore, initialize, setView, wordCount
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

findAllValidWords

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.

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