Jump to content

Tetromino: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
AIEA (talk | contribs)
AIEA (talk | contribs)
Line 44: Line 44:


== Filling the box ==
== Filling the box ==
In 3D, these 8 pieces (suppose each piece consists of 4 cubes, L and J are the same. Z and S are the same) can fit in a 4×4×2 or 8x2x2 box. The following is one of the solutions. D, S and B represent right screw, left screw and branch point, respectively<br>
In 3D, these 8 pieces (suppose each piece consists of 4 cubes, L and J are the same. Z and S are the same) can fit in a 4&times;4&times;2 or 8&times;2&times;2 box. The following is one of the solutions. D, S and B represent right screw, left screw and branch point, respectively<br>


4x4x2 box<br>
4&times;4&times;2 box<br>
<pre>layer 1 : layer 2
<pre>layer 1 : layer 2


Line 55: Line 55:
</pre>
</pre>


8&times;2&times;2 box
8x2x2 box
<pre>
<pre>
layer 1 : layer 2
layer 1 : layer 2

Revision as of 17:17, 19 December 2005

A tetromino, also spelled tetramino or tetrimino, is a geometric shape composed of four squares, connected orthogonally. This is a particular type of polyomino, like dominoes and pentominoes are. Sometimes the term is generalized to apply to configurations of four orthogonally connected cubes.

A popular use of tetrominoes is in the video game Tetris.

Counting rotations in two dimensions as equivalent, there are seven possible shapes:

  • I (also called "stick", "straight", "long"): four blocks in a straight line
  • O (also called "square", "package", "block"): four blocks in a 2×2 square
  • T: a row of three blocks with one added below the center. A common move with the T piece is to spin it in place to fill a line.
  • L: a row of three blocks with one added below the left side
  • J (also called "inverted L" or "Gamma"): a row of three blocks with one added below the right side. This piece is a reflection of L but cannot be rotated into L in two dimensions; this is an example of chirality. However, in three dimensions, this piece is identical to L.
  • S: bent trimino with block placed on outside of clockwise side
  • Z: bent trimino with block added on outside of anticlockwise side. The same symmetry properties as with L and J apply with S and Z.

Adding a third dimension produces three more patterns, all created by placing a unit cube on the bent trimino:

  • Left screw: unit cube placed on top of anticlockwise side. Chiral in 3D.
  • Right screw: unit cube placed on top of clockwise side. Chiral in 3D.
  • Branch: unit cube placed on bend. Not chiral in 3D.

However, going to three dimensions means that rotation is allowed in three dimensions. Thus, the two L-shaped and S-shaped pieces are now equivalent.

Some people refer to the pieces by the colour in which they are drawn in a particular implementation of the Tetris game, but those colours vary from implementation to implementation so this is not very sensible. For example, in many older versions of Tetris, the red piece is I.

Colors of pieces in various implementations
Piece Vadim Gerasimov's
original Tetris
Microsoft Tetris The New Tetris
I red red cyan
O blue cyan white
T brown gray yellow
L magenta yellow magenta
J white magenta blue
S green blue green
Z cyan green red

Note that the box art of The New Tetris reverses the colors of the L and J pieces and the S and Z pieces.

Filling the box

In 3D, these 8 pieces (suppose each piece consists of 4 cubes, L and J are the same. Z and S are the same) can fit in a 4×4×2 or 8×2×2 box. The following is one of the solutions. D, S and B represent right screw, left screw and branch point, respectively

4×4×2 box

layer 1  :  layer 2

S T T T  :  S Z Z B
S S T B  :  Z Z B B
O O L D  :  L L L D
O O D D  :  I I I I

8×2×2 box

    layer 1     :     layer 2

D Z Z L O T T T : D L L L O B S S
D D Z Z O B T S : I I I I O B B S

See also