The Unattainable Issues Hidden in a Easy Sport of Tetris
How complicated can a easy sport be? Tetris pushes even supercomputers to their limits and amazes mathematicians
The gameplay display screen of the sport Tetris as seen on a 1989 Nintendo Sport Boy.
Russell Hart/Alamy Inventory Picture
See the world via the lens of science. Enroll for our free, each day e-newsletter At present in Science.
As a toddler of the Nineties, I couldn’t keep away from the game-turned-best-seller Tetris. Launched in 1984 by Russian programmer Alexey Pajitnov, Tetris rapidly turned a blockbuster and has had a whole bunch of hundreds of thousands of gamers over time. I personally spent hours on my Sport Boy making an attempt to place falling bricks in order that they’d fill the enjoying subject as fully as potential. Over the course of a sport, these blocks fell quicker and quicker, and my thumbs might barely sustain with the controls.
In precept, all video games—even these as diverse as Sweet Crush Saga, Magic: The Gathering and Wordle—could be examined from a mathematical perspective. However Tetris has many particular connections to arithmetic. As an example, the sport’s purpose strongly resembles geometry’s parquet issues, through which you establish whether or not you may cowl an space with an infinitely giant set of tiles with none gaps.
However Tetris is particularly intriguing to mathematicians by way of its complexity. Extra particularly, researchers have questioned concerning the computing energy that it takes to find out how or if somebody can really “clear up” Tetris, assuming circumstances similar to a finite variety of bricks and the power to know the order through which numerous shapes will seem. It seems that that specific framing locations Tetris among the many most mathematically complicated video games.
On supporting science journalism
In the event you’re having fun with this text, think about supporting our award-winning journalism by subscribing. By buying a subscription you’re serving to to make sure the way forward for impactful tales concerning the discoveries and concepts shaping our world at this time.
Defining Complexity
Within the subject of complexity idea, mathematicians and pc scientists search to characterize the issue concerned in fixing issues. They’ve outlined a number of complexity lessons, or classes, together with P and NP issues. Merely put, P issues are straightforward for standard computer systems to resolve, whereas NP issues are harder however, within the occasion you might have a potential answer, straightforward to test. (NP issues could be considered like a Sudoku puzzle: it could take hours to fill within the fields, nevertheless it solely takes a couple of minutes to see whether or not the answer is appropriate.)
To find out the complexity of a process, one should evaluate totally different issues with one another. If each algorithm that solves process A may also clear up process B, for instance, then A is extra complicated than B. Or as mathematicians put it: B is “reducible” to A. That signifies that by evaluating Tetris with one other recognized P or NP drawback, its complexity could be decided.
So how will we decide an excellent level of comparability? Laptop scientists can flip to so-called NP-complete issues, to which all different NP issues could be lowered. One among these is the three-partition drawback.

Tetris on a Nintendo Gameboy on the Laptop Video games Museum Berlin.
IMAGO/Eibner-Pressefoto/Jonas Lohrmann/Alamy Inventory Picture
The three-partition drawback offers with the query of whether or not a given set of integers, for instance {1, 2, 5, 6, 7, 9}, could be divided into subsets with three components every such that the sum of the numbers within the subsets is all the time equal. For {1, 2, 5, 6, 7, 9}, a division could be {1, 5, 9} and {2, 6, 7}. The contents of every subset add as much as 15. Such a division shouldn’t be potential for each given set. Discovering out whether or not this exists or not proves to be extraordinarily tough: the three-partition drawback is NP-complete.
In 2003 pc scientists on the Massachusetts Institute of Expertise demonstrated that the query of whether or not a Tetris board could be cleared in a given sport scenario can itself be mapped to the three-partition drawback. To do that, the researchers equated the gaps within the Tetris sport with the subsets of the issue and the falling bricks with the numbers that need to be break up up.
On this method, the scientists confirmed that if the set of numbers could be divided into three-element subsets with the identical sum, then the Tetris enjoying subject will also be fully emptied. In doing so, they proved that the questions “Can a set be divided right into a three-partition?” and “Can the Tetris enjoying subject be emptied?” are equivalent from a mathematical perspective.
This perception means the puzzle of whether or not given bricks could be organized appropriately falls into the class of NP-complete issues, making Tetris a extremely complicated sport. The longer the sequence of bricks that the sport incorporates, the extra time-consuming it’s for a pc to find out the solvability. And certainly, standard computer systems can be overwhelmed in a short time: there isn’t a algorithm that may clear up the issue effectively.
Tetris Reaches the Limits of Computability
Tetris has much more complicated properties, as pc scientists Hendrik Jan Hoogeboom and Walter Kosters, each at Leiden College within the Netherlands, confirmed in a 2004 paper. They checked out a barely totally different query. Let’s assume that you simply observe a sport of Tetris that solely options the elongated, I-shaped brick. If I gave you a predetermined variety of methods for, say, 40 I-shaped tiles to fall onto an empty Tetris board, might you determine whether or not, amongst these eight methods, there’s one for which the board finally ends up empty?
Hoogeboom and Kosters proved that this query is, actually, undecidable, even with an infinite quantity of computing energy. That’s as a result of the aforementioned query could be mapped to an issue that pertains to Kurt Gödel’s notorious incompleteness theorems. These state that there’ll all the time be statements in arithmetic that may neither be proved nor disproved.
In fact, these questions doubtless don’t have any impact in your success at Tetris. With the velocity at which items fall, there’s hardly any time to consider mathematical issues.
Nonetheless, it’s outstanding that after greater than 40 years, Tetris appreciation continues to develop and evolve, at the same time as the sport stays primarily unchanged. As an example, a enjoying approach generally known as “rolling” (which permits very quick inputs to be made) has made it potential to advance additional than ever earlier than. Previously, the twenty ninth stage was seen as an insurmountable restrict. However in 2023 a then 13-year-old broke all earlier information by rolling via to stage 157, inflicting the sport to crash. We are able to solely wait and see what surprises Tetris has in retailer sooner or later.
This text initially appeared in Spektrum der Wissenschaft and was reproduced with permission.