Understanding Tetris

Before attempting to develop the Tetris game as an Android application, we need to understand the game, its rules, and its constraints.

Tetris is a matching puzzle video game that makes use of tiles. The name Tetris is derived from the words tetra – the Greek numerical prefix for four – and tennis. The tiles in Tetris combine to make up tetrominoes which are geometric shapes composed of four squares connected orthogonally:

Tetris tetrominoes

In Tetris, a random sequence of tetrominoes fall down upon a playing field. These tetrominoes can be manipulated by the player. A number of motions can be performed on each tetromino ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.