Playing forever

From TetrisWiki
Revision as of 21:48, 29 June 2007 by *>Colour thief (→‎Open questions)
Jump to navigation Jump to search
A 140-tetromino run of this strategy.

The following outlines a method of playing forever given the following conditions, which apply in many Tetris products since 2001:

Standard procedure

The general method is achieved by dividing the screen into self contained sections as shown below. Specifically, the 4 left columns, the 4 right columns, and the 2 middle columns will be treated as distinct regions, with specific pieces assigned exclusively to each region. Because the random generator provides strings of bags containing each of the 7 pieces in a random order, it is possible to construct a strategy around the relatively small variation, with looping patterns.

S, T, and Z will be placed to the left, L, J, and O will be placed to the right, and I pieces will fill the middle.

ZI
ZZSILOOJ
ZTSSILOOJ
TTTSILLJJ

The S, T, and Z piece loop

STTT
SSTZ
SSZZ
SSZZ
TSZZ
TTZT
TZTT
ZZST
ZZSS
ZZSS
ZTSS
TTTS

This pattern loops after 4 bags of pieces. Depending on the order of the pieces for each bag, you may need to use Hold to force a piece to come last. Piece previews are technically not required to play this pattern.


The Z piece must drop after T, so use Hold to change the order if necessary:

Z
ZZS
ZTSS
TTTS
GGGG

The T piece must not drop first, so use Hold to change the order if necessary:

T
ZTT
ZZST
ZGSS
GGGS

Option 1

T
TT
TZ
ZZS
ZGSS
GGGS

Option 2

The T piece must land diagonally adjacent to the other T, so use Hold to change the order if necessary:

S
SSZ
TSZZ
TTZG
TGGG
GGGG

Option 1 (needs
T before S)

S
SSZ
GSZZ
GGZT
GGTT
GGGT

Option 2 (needs
T before Z)

The T piece must drop last, so use Hold to change the order if necessary:

STTT
SSTZ
GSZZ
GGZG

The L, J, and O piece loop

This pattern loops after a single bag of pieces. Depending on the order of the pieces, you will need to use a different construction. If this STZ pile needs the first tetromino of the bag to be held, four previews are required to play this pattern, because in the worst case scenario TLZSIxy, you will need to see four pieces ahead (with L as the active tetromino, you need to see x) in order to determine whether the O piece is coming last. Otherwise, the first L or J tetromino can be held and put into place once its mirror or the O shows up in the preview.

O first (OJL, OLJ):

JJLL
JOOL
JOOL

O last (JLO, LJO):

LOOJ
LOOJ
LLJJ

JOL: (mirror for LOJ)

JJ
J
J

Drop J

JJ
JOO
JOO

Soft-drop O

JJ
JOO
JOO

Slide O

JJLL
JOOL
JOOL

Drop L

Alternate method for JOL:

J
J
JJ

Drop J

OOJ
OOJ
JJ

Drop O

LOOJ
LOOJ
LLJJ

Soft-drop L

LOOJ
LOOJ
LLJJ

Slide L

The I piece loop

This pattern loops every 2 bags. No use of Hold or piece previews is required. The player must simply alternate putting the I tetromino in columns 5 and 6 to reap tetrises.

I
I
I
I
GI
GI
GI
GI

Notice that the alternate JOL method will work only if the first I tetromino of the loop is placed away from the JLO heap.

Balancing the Stacks

Since the loops have a cycle of 4, 1, and 2 bags respectively, after playing 4 bags they will all be flat. However, the I loop will have only placed 8 rows compared to the 12 rows placed by both the STZ and LJO loops.

STTTLOOJ
SSTZLOOJ
SSZZLLJJ
SSZZJJLL
TSZZIIJOOL
TTZTIIJOOL
TZTTIILOOJ
ZZSTIILOOJ
ZZSSIILLJJ
ZZSSIILOOJ
ZTSSIILOOJ
TTTSIILLJJ

The rows stacked
after 4 bags.

STTTLOOJ
SSTZLOOJ
SSZZLLJJ
SSZZJJLL
----------
----------
----------
----------
----------
----------
----------
----------

Though of course,
lines have cleared.

STTTLOOJ
SSTZLOOJ
SSZZLLJJ
SSZZJJLL

Leaving us with a
surplus.

In order to offset this balance, it is necessary to change strategy. Continue to do the standard STZ loop, while using the following LO and IJ loops.

The L, O piece loop

This pattern loops after 2 bags of pieces. Order is not important, and therefore neither Hold nor piece previews are strictly required for it.

L
OOL
OOLL
OOLL
OOGL
GGGL
GGGG

The I, J piece loop

This pattern loops after 2 bags of pieces. Order is not important, and therefore neither Hold nor piece previews are strictly required for it.

JIIJ:

GGGGGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGJGGGG
GGGGJGGGG
GGGGJJGGGG
GGGGJJGGGG
GGGGJGGGGG
GGGGJGGGGG
GGGGIGGGGG
GGGGIGGGGG
GGGGIGGGGG
GGGGIGGGGG
GGGGGGGGGG

Because of line clears, the order is not very important. Even if you place pieces in the opposite order than what is shown, the net change in screen geometry will be the same:

GGGGGGGG
GGGGJGGGG
GGGGJGGGG
GGGGJJGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGGGGG
GGGGJGGGG
GGGGJGGGG
----------
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGJJGGGG
GGGGJJGGGG
GGGGJJGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
----------
----------
----------
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG
GGGGIGGGG

Putting it all together

If you play the standard method for 12 bags, the balancing method for 4 bags, and finally the reverse balancing method (with LO on the left and STZ on the right) for 4 bags, then you will clear the entire screen allowing you to start over again and play indefinitely.

GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG

The net result of
12 bags stacked
the standard way.

STTT
SSTZ
SSZZ
SSZZ
TSZZOOLL
TTZTOOLL
TZTTOOLL
ZZSTOOLL
ZZSSJJOOLL
ZZSSJIOOLL
ZTSSJIOOLL
TTTSIIOOLL
GGGGIIGGGG
GGGGIJGGGG
GGGGIJGGGG
GGGGJJGGGG
GGGGJJGGGG
GGGGJIGGGG
GGGGJIGGGG
GGGGIIGGGG
GGGGIIGGGG
GGGGIJGGGG
GGGGIJGGGG
GGGGJJGGGG

The rows stacked
after 4 bags of
balanced stacking.

STTT
SSTZ
SSZZ
SSZZ
TSZZOOLL
TTZTOOLL
TZTTOOLL
ZZSTOOLL
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------

Of course,
line clears
have actually...

STTT
SSTZ
SSZZ
SSZZ
TSZZOOLL
TTZTOOLL
TZTTOOLL
ZZSTOOLL

...kept things
realistically short.

GGGG
GGGG
GGGG
GGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG
GGGGGGGG

Where we left off.

OOLLJJTTTZ
OOLLJISTZZ
OOLLJISSZZ
OOLLIISSZZ
OOLLIISSZT
OOLLIJTSTT
OOLLIJTTST
OOLLJJTZSS
GGGGJJZZSS
GGGGJIZZSS
GGGGJIZZTS
GGGGIIZTTT
GGGGIIGGGG
GGGGIJGGGG
GGGGIJGGGG
GGGGJJGGGG

4 bags balancing
the other side.

----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------

Back to
square one.

The Final Bag

The final bag requires some special consideration. Because the sides are getting low, the J piece will not necessarily clear. So I must come before J in order to follow the pattern. You can't rely on using Hold for this as a worst case scenario (eg. TJIxxxx) would also require you to Hold the T. To deal with this problem, you can follow the procedure below.

I
I
I
I
JJ
GJG
GGGJGg
GGGGGGGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGGG

Stack the I on
top of the J.

I
I
I
I
OOLLJJTTTZ
OOGLJGSTZZ
GGGLJGSSZg
GGGGGGSGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGGG

Play the
remainder.

I
I
I
I
----------
----------
----------
GGGGGGSGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGG
----------
I
I
I
I
GGGGGGSGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGG

The end of the
20-bag loop.

As you can see, 4 bags into the next loop and we're exactly where we expect to be:

G
G
G
G
GGGGGGGGG
GGGGGGGGG
GGGGGGGGG
GGGGGGGGG
STTTJJLL
SSTZJOOL
SSZZJOOL
SSZZLOOJ
TSZZIILOOJ
TTZTIILLJJ
TZTTIIJJLL
ZZSTIIJOOL
ZZSSIGJOOL
ZZSSIGJJLL
ZTSSIGJOOL
TTTSIGJOOL
GGGGIGGGGG
GGGGIGGGGG
GGGGIGGGGG
GGGGIGGGGG
STTTJJLL
SSTZJOOL
SSZZJOOL
SSZZLOOJ
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
STTTJJLL
SSTZJOOL
SSZZJOOL
SSZZLOOJ

Open questions

Adapting this method to the following situations is left as an exercise for the reader:

It should be noted that all solutions will necessarily be a bag-multiple of pieces in length. Also, all loops must produce a net change of 0 after a complete cycle. This means that all solutions must clear as many lines as they stack, which requires pieces in a multiple of 5. Combining these 2 conditions, it can be seen that all solutions will be a multiple of 5 bags (35 pieces with the Random Generator).

The STZ pattern loops every 4 bags, so all solutions that use it will necessarily be a multiple of 4-bags. Therefore with current techniques, in addition to the standard conditions above, the minimum loop size is 20 bags. More efficient solutions will require a much revised approach.

See also

  • ST stacking, a method of making back-to-back T-spin doubles