Tetris is one of the most popular video games ever. It was developed in 1985 in Russia and made popular by Nintendo.
In Tetris, various blocks (also called tetrominoes) appear at the top of the board and keep heading towards the bottom of the board. When a row is completely filled with tetrominoes, it disappears. Otherwise, they are stacked on top of each other and there is less room for new blocks to appear. The goal of the game is to keep the game going as long as possible and make as many rows disappear as possible. The game ends when a block at the top of the playing field has no more space to move further down. As the game progresses, the speed at which the tetrominoes move down increases. The user gets points when he clears a row.
In Tetris there are the following blocks or tetrominoes:
Currently, the game is optimized for computers. The control on smartphones or tablets does not work yet, but I am working on a solution.
The user controls the tetrominoes with the Up, Down, Left and Right keys on the keyboard. The Left and Right keys move the block to the left and right, respectively. The Down key moves the block down even faster than it already does. The Up key rotates the block 90 degrees.
You get 100 points for a cleared line. However, there is a bonus if more than one line is cleared at once. For two lines you get 250 points (instead of 200), for three you get 500 points (instead of 300) and for four in one go you get 1000 points (instead of 400). The game ends when the blocks have reached the top column and no more blocks can be added. The user can then enter the score in the high score list.