CloudFlare suffered a massive security issue affecting all of its customers, including Rosetta Code. All passwords not changed since February 19th 2017 have been expired, and session cookie longevity will be reduced until late March.--Michael Mol (talk) 05:15, 25 February 2017 (UTC)


From Rosetta Code
Tetris is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Create a playable Tetris game.

The visible game matrix should be 10*20.

It must have:

  • left/right key;
  • a hard drop key (the current piece will be dropped and locked at once);
  • (better with another soft drop key);
  • at least one rotation key;
  • (better with two, for both clockwise and counter-clockwise 90° rotation);
  • full set of 7 kinds of shapes (ITOSZJL).

The piece should be rotatable at its initial position (unlike sega arcade tetris), and automatically falling at reasonable speed.

At least 1 preview piece should be shown.

No further requirement about randomizer / rotation system / DAS / colors / difficulty levels / score / hold, but you may do it if you wish.


See Tetris/BASH.


See Tetris/Java.

Microsoft Small Basic[edit]

See Tetris/Microsoft Small Basic.