Class GameMatrixFactory

java.lang.Object
de.sfuhrm.sudoku.GameMatrixFactory

public final class GameMatrixFactory extends Object
A factory for creating game matrix objects.
Author:
Stephan Fuhrmann
See Also:
  • Constructor Details

    • GameMatrixFactory

      public GameMatrixFactory()
      Creates a new game matrix factory instance.
  • Method Details

    • newGameMatrix

      public GameMatrix newGameMatrix()
      Creates a new 9x9 GameMatrix instance.
      Returns:
      a GameMatrix instance with all fields initialized to unset.
    • newGameMatrix

      public GameMatrix newGameMatrix(GameSchema gameSchema)
      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

      public Riddle newRiddle()
      Creates a new 9x9 Riddle instance.
      Returns:
      a Riddle instance with all fields initialized to unset.
    • newRiddle

      public Riddle newRiddle(GameSchema gameSchema)
      Creates a new Riddle instance.
      Parameters:
      gameSchema - the dimensions of the riddle to create.
      Returns:
      a Riddle instance with all fields initialized to unset.