Class BadAutoPlayer

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

public class BadAutoPlayer
extends AbstractAutoPlayer

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

Author:
Owen Astrachan

Field Summary
 
Fields inherited from class AbstractPlayer
myModel, myScore, myView, myWords
 
Constructor Summary
BadAutoPlayer(BoggleModel m)
           
 
Method Summary
 java.util.SortedSet<java.lang.String> getAllValidWords(int minLength)
          Return all the valid words as found by the player, presumably automatically.
 
Methods inherited from class AbstractAutoPlayer
getName
 
Methods inherited from class AbstractPlayer
add, getScore, initialize, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface IPlayer
add, getScore, initialize, setView
 

Constructor Detail

BadAutoPlayer

public BadAutoPlayer(BoggleModel m)
Method Detail

getAllValidWords

public java.util.SortedSet<java.lang.String> getAllValidWords(int minLength)
Description copied from interface: IAutoPlayer
Return all the valid words as found by the player, presumably automatically.

Specified by:
getAllValidWords in interface IAutoPlayer
Specified by:
getAllValidWords in class AbstractAutoPlayer
Parameters:
minLength - of words found by an autoplayer
Returns:
set of all strings found by autoplayer