package basicObjects.Factories;
import basicObjects.boardObjects.Board;
public class singletonBoardFactory {
protected singletonBoardFactory() {
}
private static Board board = null;
public static Board getInstanceOfBoard(String boardType) {
if (board == null) {
if (boardType.equals("NORMAL")) {
board = new Board();
} //this is to allow for other boards to be added in, in the future
}
return board;
}
}