Tetris – Classic Block Game

## About Tetris

Tetris is the best-selling video game of all time, with over 520 million copies sold across all platforms since its creation by Alexey Pajitnov in 1984. This open-source HTML5 version, built with pure Canvas and JavaScript, faithfully recreates the timeless gameplay that has defined the puzzle genre for decades.

## How to Play

Tetromino shapes (blocks made of four squares) fall from the top of the playing field. You can rotate and move each piece as it falls. When a horizontal line is completely filled with blocks, that line disappears and you earn points.

**The goal:** Clear as many lines as possible and prevent the blocks from reaching the top of the screen.

## Controls

– **Left/Right arrows** — Move the piece horizontally
– **Up arrow** — Rotate the piece clockwise
– **Down arrow** — Soft drop (accelerate downward)

## The Seven Tetrominoes

Each Tetris piece is one of seven distinct shapes, named after letters they resemble:

| Piece | Shape | Color |
|——-|——-|——-|
| I | Straight line | Cyan |
| O | Square | Yellow |
| T | T-shape | Purple |
| S | S-shape | Green |
| Z | Z-shape | Red |
| J | J-shape | Blue |
| L | L-shape | Orange |

## Tips and Strategy

1. **Leave one column open.** Keep one column (usually the rightmost or leftmost) empty so you can slot the I-piece vertically for a Tetris (clearing four lines at once).
2. **Build flat.** Try to keep your block stack as level as possible. Tall, uneven stacks are harder to manage.
3. **Learn to rotate.** Mastering rotation is essential. Know how each piece looks in all four orientations.
4. **Think ahead.** The next piece is shown in a preview window. Plan your placement before the piece lands.

## Game Features

– Classic Tetris gameplay with all seven tetrominoes
– Canvas-based rendering for smooth visuals
– Keyboard controls
– Open-source under MIT license
– Line-clear scoring system

Experience the game that started it all. Play Tetris now!

Leave a Reply

Your email address will not be published. Required fields are marked *