|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectassignment2.AbstractPlayer
assignment2.AbstractAutoPlayer
assignment2.BadAutoPlayer
public class BadAutoPlayer
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 assignment2.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 assignment2.AbstractAutoPlayer |
|---|
getName |
| Methods inherited from class assignment2.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 assignment2.IPlayer |
|---|
add, clear, getScore, initialize, setView, wordCount |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public BadAutoPlayer()
| Method Detail |
|---|
public void findAllValidWords(BoggleBoard board,
ILexicon lex,
int minLength)
IAutoPlayerIPlayer interface's add
method.
findAllValidWords in interface IAutoPlayerfindAllValidWords in class AbstractAutoPlayerboard - is the BoggleBoard on which wrods are foundlex - is the lexicon in which words are searched/validatedminLength - of words found by an autoplayer
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||