Package sac.model.generators
Class RandomGenerator
java.lang.Object
sac.model.generators.RandomGenerator
- All Implemented Interfaces:
Generator
The generator classic Tetris would use.
Random Generator generates a sequence of all seven one-sided tetrominoes (I, J, L, O, S, T, Z) permuted randomly,
as if they were drawn from a bag.
- Author:
- Kai
-
Constructor Summary
ConstructorDescriptionInitialize a random bag with size equal the number of possible piece types (7 in classic Tetris). -
Method Summary
-
Constructor Details
-
RandomGenerator
public RandomGenerator()Initialize a random bag with size equal the number of possible piece types (7 in classic Tetris).
-
-
Method Details