Package de.sfuhrm.sudoku
Class GameMatrixFactory
java.lang.Object
de.sfuhrm.sudoku.GameMatrixFactory
A factory for creating game matrix objects.
- Author:
- Stephan Fuhrmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new 9x9 GameMatrix instance.newGameMatrix(GameSchema gameSchema) Creates a new GameMatrix instance.Creates a new 9x9 Riddle instance.newRiddle(GameSchema gameSchema) Creates a new Riddle instance.
-
Constructor Details
-
GameMatrixFactory
public GameMatrixFactory()Creates a new game matrix factory instance.
-
-
Method Details
-
newGameMatrix
Creates a new 9x9 GameMatrix instance.- Returns:
- a GameMatrix instance with all fields initialized
to
unset.
-
newGameMatrix
Creates a new GameMatrix instance.- Parameters:
gameSchema- the dimensions of the game matrix to create.- Returns:
- a GameMatrix instance with all fields initialized
to
unset.
-
newRiddle
Creates a new 9x9 Riddle instance.- Returns:
- a Riddle instance with all fields initialized
to
unset.
-
newRiddle
Creates a new Riddle instance.- Parameters:
gameSchema- the dimensions of the riddle to create.- Returns:
- a Riddle instance with all fields initialized
to
unset.
-