Tetris: Difference between revisions

From Rosetta Code
Content added Content deleted
(added link to Javascript entry)
(relax requirements)
Line 1: Line 1:
{{draft task|Games}}
{{draft task|Games}}

;task
Create a playable [https://en.wikipedia.org/wiki/Tetris Tetris] game.
Create a playable [https://en.wikipedia.org/wiki/Tetris Tetris] game.
<br><br>

;requirements
The visible game matrix should be 10*20.
* a left / right key

* a hard drop key (the current piece will be dropped and locked at once)
It must have:
* left/right key;
* a rotation key
* a preview piece
* a hard drop key (the current piece will be dropped and locked at once);
* full set of 7 kinds of shapes (ITOSZJL)
* (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).

<br>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.
<br><br>
<br><br>



Revision as of 16:58, 28 September 2017

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.
task

Create a playable Tetris game.

requirements
  • a left / right key
  • a hard drop key (the current piece will be dropped and locked at once)
  • a rotation key
  • a preview piece
  • full set of 7 kinds of shapes (ITOSZJL)



Bash

See Tetris/BASH.

Java

See Tetris/Java.

JavaScript

See Tetris/JavaScript.

Microsoft Small Basic

See Tetris/Microsoft Small Basic.