Say you have a simple tetris "game". Each piece have 1 single colour, and you read moves as: *Type *Rotation *Column of the first left piece's square inside matrix.
Pieces fall till the end or untill they colide with another piece on the given column. For simplification, we agree that no side movement is implied.
Now let say we want to generate an input file from a completed matrix, so we can recreeate the whole map as:
N, which represent the number of pieces
Each piece: Type, Rotation, Column
*they fall in the order they appear first.
Type of pieces: Square, L J Z S I T with rotations