PieceManager class

Manages the piece queue using the Tetris Guideline 7-bag randomizer.

Constructors

PieceManager({Random? random})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

next() → TetrominoType
Returns the next piece from the bag.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek(int count) → List<TetrominoType>
Peek at the upcoming count pieces without consuming them.
seed(List<TetrominoType> types) → void
Seed from a list (e.g. for replay/deterministic testing).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited