Tetris Game

A classic block-puzzle game with a top 100 leaderboard.

0
1
Controls
  • Arrows Move/Rotate
  • Space Hard Drop
Top 100 Leaderboard
Rank Player Score Date

About Tetris & Game Mechanics

Tetris is an iconic tile-matching puzzle video game originally created in 1984 by Soviet software engineer Alexey Pajitnov on an Electronika 60 computer. Recognized as one of the greatest and most influential video games in history, Tetris challenges spatial reasoning, cognitive reaction times, and geometric pattern recognition.

The Geometry of Tetrominoes

The game revolves around seven distinct 4-square geometric shapes known as Tetrominoes (or "tetraminoes"), each named after the Latin letter it resembles:

  • I-Piece (Cyan / Light Blue): The 4-block straight bar, essential for scoring four-line clears ("Tetris").
  • O-Piece (Yellow): The 2x2 square block that does not change shape upon rotation.
  • T-Piece (Purple): The 3-block row with a centered perpendicular block, widely used in advanced competitive techniques like "T-Spins".
  • S-Piece (Green) & Z-Piece (Red): Zig-zag shaped pieces that are reflections of each other.
  • J-Piece (Blue) & L-Piece (Orange): Hook-shaped 3-block pieces with a 1-block corner appendage.

Core Gameplay Rules & Scoring Mechanics

  1. Matrix Grid: Pieces fall down a vertical grid (traditionally 10 columns by 20 rows).
  2. Line Clearing: When a horizontal line of 10 blocks contains no gaps, it dissolves, shifting all above blocks downward.
  3. Combo & Multi-Line Multipliers: Clearing multiple lines simultaneously (Single, Double, Triple, or a 4-line Tetris) awards exponentially higher point values.
  4. Level Progression: As lines are cleared, the gravity speed accelerates, giving players progressively less time to maneuver pieces.
  5. Top-Out Condition: The game terminates when blocks stack up to the top limit of the playfield.

Controls & Local Leaderboard

Use the Arrow Keys to move left/right and rotate pieces clockwise. Press the Spacebar for instant Hard Drop, or Down Arrow for Soft Drop. Your highest scores are recorded locally in your browser's persistent storage.

Frequently Asked Questions (FAQ)

What is a "Tetris"?

A "Tetris" is the highest-scoring single move in the game, achieved by dropping an I-piece into an empty column to clear 4 complete horizontal rows at once.

Is this game implemented using client-side HTML5 Canvas?

Yes. This game runs on HTML5 Canvas using a 60 FPS requestAnimationFrame loop and vanilla JavaScript, with zero external game engine dependencies.