com.eriksilkensen.sudoku
Class TextFileBoardFactory

java.lang.Object
  extended by com.eriksilkensen.sudoku.TextFileBoardFactory
All Implemented Interfaces:
BoardFactory

public class TextFileBoardFactory
extends java.lang.Object
implements BoardFactory

Factory implementation for creating Boards using a formatted text file.

As of 02/13/07 this Factory should only be used for test purposes

Since:
1.0
Version:
02/13/07
Author:
Erik Silkensen

Constructor Summary
TextFileBoardFactory()
           
 
Method Summary
 Board createBoard(BoardDifficulties difficulty)
          Pops up a JOptionPane asking for the Board's text file, then creates a Board from it.
protected  Cell[][] makeCells(java.io.File file)
          Parses the text file into a Cell array so the Board can be created
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileBoardFactory

public TextFileBoardFactory()
Method Detail

createBoard

public Board createBoard(BoardDifficulties difficulty)
Pops up a JOptionPane asking for the Board's text file, then creates a Board from it.

Specified by:
createBoard in interface BoardFactory

makeCells

protected Cell[][] makeCells(java.io.File file)
Parses the text file into a Cell array so the Board can be created