Class PuzzleUI

java.lang.Object
  extended by PuzzleUI

public class PuzzleUI
extends java.lang.Object

PuzzleUI reads a wordsearch data file and stores the data into two different structures; a puzzle board and a word list. The WordSearchSolver is called to find the words. The found word results are displayed.

Version:
9/13/2007
Author:
J. Dalbey

Constructor Summary
PuzzleUI(java.lang.String infile)
          Constructor Reads the file
 
Method Summary
 int getSize()
          Accessor to get how many lines are in the file
static void main(java.lang.String[] args)
          Read and solve a word search puzzle, then display the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PuzzleUI

public PuzzleUI(java.lang.String infile)
Constructor Reads the file

Parameters:
infile - the name of the file (w/o path)
Method Detail

getSize

public int getSize()
Accessor to get how many lines are in the file


main

public static void main(java.lang.String[] args)
Read and solve a word search puzzle, then display the results.

Parameters:
args - An array of command line parameters. Usage: PuzzleUI [-timing] filename
filename is the name of a properly formatted wordsearch puzzle file "-timing" show elapsed time to solve the puzzle.