(13 intermediate revisions by 3 users not shown)
Line 15: Line 15:
 
- The board is empty at start.
 
- The board is empty at start.
  
- The game will continue until a piece can no longer exit or enter a spawning area.
+
- The game will continue until a piece can no longer exit or enter a spawning area. The spawning area is typically located in the top and center of the board.
 
+
[[Image:Example.jpg]]
+
  
 
Theoretically the game could last forever, but this has been proven to be false. An article entitled [http://www.jstor.org/stable/3619195?cookieSet=1 ''How to Lose at Tetris''] proves that an alternating sequence of S and Z tetrominoes will inevitably cause the player to fail no matter the skill of the player. Although this will take perhaps trillions of years for a random number generator to produce 120 alternating S and Z tetorminoes, it will not last forever.
 
Theoretically the game could last forever, but this has been proven to be false. An article entitled [http://www.jstor.org/stable/3619195?cookieSet=1 ''How to Lose at Tetris''] proves that an alternating sequence of S and Z tetrominoes will inevitably cause the player to fail no matter the skill of the player. Although this will take perhaps trillions of years for a random number generator to produce 120 alternating S and Z tetorminoes, it will not last forever.
 +
 +
A very interesting paper by Demaine, Hohenberger, and Liben-Nowell
 +
[http://www.springerlink.com/content/cpb74bmbw5q6gy7n/ "Tetris is Hard, Even to Approximate"]. Those taking ECE368 may also appreciate the article.
 +
 +
 +
[http://doc.trolltech.com/4.5/widgets-tetrix.html Here is the source code for Tetris from Qt.]
 +
 +
A video showing Tetris:
 +
<youtube>SkCpuQQiFpc</youtube>
  
 
----
 
----
[https://kiwi.ecn.purdue.edu/rhea/index.php/2009_Fall_ECE_462_Lu Back to ECE462]
+
[[2009_Fall_ECE_462_Lu| Back to ECE462]]

Latest revision as of 16:34, 14 November 2013

Tetris

Tetris is a puzzle computer game created by Alexey Pajitnov on June 6, 1984. It is probably one of the most famous and popular games in the entire world. It can be played on games consoles, mobile phones, and even graphing calculators.

Here are the rules of Tetris:

- There are seven pieces composed of four blocks. These pieces are called tetrominoes.

Tetrominoes.png

The tetrominoes have special names to make discussing them much easier. Starting from the light blue piece and going clockwise: J, Z, L, S, T, O, I

- Tetrominoes in a random sequence will be dropped into a board with a size of 10x20 blocks.

- The board is empty at start.

- The game will continue until a piece can no longer exit or enter a spawning area. The spawning area is typically located in the top and center of the board.

Theoretically the game could last forever, but this has been proven to be false. An article entitled How to Lose at Tetris proves that an alternating sequence of S and Z tetrominoes will inevitably cause the player to fail no matter the skill of the player. Although this will take perhaps trillions of years for a random number generator to produce 120 alternating S and Z tetorminoes, it will not last forever.

A very interesting paper by Demaine, Hohenberger, and Liben-Nowell "Tetris is Hard, Even to Approximate". Those taking ECE368 may also appreciate the article.


Here is the source code for Tetris from Qt.

A video showing Tetris:


Back to ECE462

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett