assignment2
Class BoardMakerFromStrings

java.lang.Object
  extended by assignment2.BoardMakerFromStrings
All Implemented Interfaces:
IBoardMaker

public class BoardMakerFromStrings
extends java.lang.Object
implements IBoardMaker

Class provides facility to make a new Boggle board from an array of Strings.


Constructor Summary
BoardMakerFromStrings(java.lang.String[] rows)
          Makes a boggle board from an array of Strings.
 
Method Summary
 BoggleBoard makeBoard(int rows)
          Return square board of specified size (4 or 5).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardMakerFromStrings

public BoardMakerFromStrings(java.lang.String[] rows)
Makes a boggle board from an array of Strings. Each entry in array represents one row of the board. For example, given the input new String[] { "abcd", "efgh", "ijkl", "mnop"} the board would have an A in the upper left (0,0) corner and a P in the lower right (3,3). Note: a "q" is automatically replaced with "qu"

Parameters:
rows -
Method Detail

makeBoard

public BoggleBoard makeBoard(int rows)
Description copied from interface: IBoardMaker
Return square board of specified size (4 or 5).

Specified by:
makeBoard in interface IBoardMaker
Parameters:
rows - is dimension of board
Returns:
squre BoggleBoard of specified size