Tetris: From Moscow to the Kill Screen · 1

Why does Tetris have exactly seven pieces?

Nobody picked the number seven. Four squares did.

A puzzle from a Moscow toyshop

In the early 1980s, Alexey Pajitnov worked at a computer lab of the Soviet Academy of Sciences in Moscow, researching artificial intelligence. New machines arrived now and then, and testing one meant writing a small program for it, which, he said, "became my excuse for making games."1

His favorite puzzle since childhood was pentominoes: flat pieces, each made of five squares joined along their sides, that you fit together.15 Pajitnov dates his idea to June 1984: those pieces might make a good computer game.1 Accounts differ on whether the first working version came in 1984 or 1985.3

Then came a problem. In his words: "having the 12 pentomino pieces rotating in real time seemed too complicated, so I scaled it down to tetrominoes, of which there are seven."1 A tetromino is four squares joined edge to edge. Before you hear why there are seven, see how many you can find.

Build every shape

Try it

Tap four squares that join along their sides. Count them like cardboard cutouts on a table: turning one around or flipping it over doesn't make a new shape. How many different shapes can you find?

Tap 4 squares.

Found: 0

Your shapes will appear here.

The rule that makes seven

If you can flip them over, four squares make exactly five shapes.4 In the Tetris you play today, a piece can turn but it can't flip. It never shows you its back. That splits two of the five in half. Flip an L over and you get a J, and no amount of turning gets you back to the L. The same goes for S and Z.4

The other three come through unchanged. I, O and T look the same in a mirror, so flipping them never made a difference. Three single pieces plus two pairs: 3 + 2 + 2 = 7. Mathematicians call the first count the free tetrominoes and the second the one-sided tetrominoes; Tetris uses all seven one-sided ones.4

So seven was never a number someone liked the sound of. It's the complete set. Try to build an eighth piece and it will turn out to be one of the seven, turned.

The 12 pentominoes, counted with flipping allowed.5

Look at the 12 pentominoes. Under the Tetris rule, turn but never flip, how many pieces would there be?

12 18 24

Pieces made of letters

Pajitnov's machine was an Elektronika 60, a Soviet copy of an American computer, the PDP-11.3 It had no real graphics, only a screen that showed text, so he "used letters to form the playing pieces."12

[][][] []
A sketch, not a screenshot. Later accounts say the pieces were drawn with bracket characters.3

Getting something he could control on screen took him about three weeks. "I pretended I was debugging my program," he recalled, "but in truth I just couldn't stop playing it."1 That first version had no score and no levels.3 He named it after tetra, Greek for four, and tennis, his favorite sport.3 Friends got copies on floppy disks, and before long, he said, "it seemed like everyone knew about it."2

He had no idea how to publish it,1 and nobody could say for sure whose game it was. That question leads to a Cold War fight over the rights, a court deciding whether a Nintendo counts as a computer, a Game Boy in millions of pockets, and a 13-year-old who played the 1989 Nintendo cartridge until it crashed.3 First: who owns a game made in the Soviet Union?