As many computer- and video-game players have long known, the insanely addictive, immensely popular game of Tetris is tough. You can’t really win; you merely try your best to improve upon previous results.
The game was invented in 1985 by mathematician Alexey Pajitnov, then a computer engineer at the Academy of Science’s Computer Center in Moscow. The game board is a rectangular grid of squares, initially occupied by a given configuration of filled squares. The player is given, one by one, a sequence of what are called p tetrominoes. A tetromino is a set of four squares (or blocks) arranged into a larger square, a “T,” an “L,” or some other configuration. Each piece starts in the middle of the top row of the game board and falls downward at a constant speed. As it falls, the player can rotate the piece or slide it sideways.