Link to code: BoggleMain.java
import java.util.Random;
import java.io.InputStream;
/**
* Play a game of Boggle. To play code must instantiate the
* BoggleGui gui object with a working IWordOnBoardFinder and
* a working ILexicon, as well as a working IAutoPlayer.
*
*/
public class BoggleMain {
public static void main(String[] args) {
ILexicon lexicon = new SimpleLexicon();
IWordOnBoardFinder finder = new BadWordOnBoardFinder();
InputStream is = lexicon.getClass().getResourceAsStream("/ospd3.txt");
IAutoPlayer compPlayer = new LexiconFirstAutoPlayer(lexicon);
BoggleGUI bgui = new BoggleGUI(lexicon,finder,is, compPlayer);
}
}