Tetris Terminology: Block, Piece and Playfield - DerekJi/ngtetris GitHub Wiki
- Block
- Piece
- Playfield
A block is a basic unit in Tetris. It is the part of a piece that fills one unit of the playfield.
A block has 2 possible statuses: empty & occupied.
Example (Empty):
◻
Example (Occupied):
▣
Also, 'Being Removed' might be another status, which shows the blocks will be removed as the row is fully occupied. Normally, they might be in a different colour or even flashing.
Example (Being Removed):
▣▣▣▣▣▣▣▣▣▣
A piece in Tetris and similar games is a geometric shape consisting of a set of blocks that are moved as a unit.
Example:
▣▣▣▣
◻▣◻◻
▣▣▣◻
▣▣
▣▣
The 2D matrix field might be in sizes of 10 x 20 or 10 x 25. In this project, 10 x 20 is the preference.
Example (10 x 20):
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻
◻◻◻◻◻◻◻◻◻◻