GameState Constructor

Initializes a new instance of the GameState class.

Definition

Namespace: ProjectLCore.GameLogic
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public GameState(
	ICollection<Puzzle> whitePuzzlesDeck,
	ICollection<Puzzle> blackPuzzlesDeck,
	int numInitialTetrominos
)

Parameters

whitePuzzlesDeck  ICollectionPuzzle
A collection of the white puzzles.
blackPuzzlesDeck  ICollectionPuzzle
A collection of the black puzzles.
numInitialTetrominos  Int32
The amount of tetrominos of each shape in the shared reserve at the beginning of the game.

Exceptions

ArgumentException The number of initial tetrominos must be at least MinNumInitialTetrominos. or The number of white puzzles must be at least NumPuzzlesInRow. or The number of black puzzles must be at least NumPuzzlesInRow + 1.

See Also