JavaScript Tetris
Jake Gordon's clean Tetris implementation in pure JS, no framework.
How to play
Shift left and right, rotate with up, soft-drop with down, and slam pieces home with space. Complete a full row to clear it and score — let the stack reach the top and it's over.
Arrow keys move/rotate, space drops.
Integration notes
The author published a full 'Tetris in JavaScript' tutorial alongside the code, which is cleanly split into game, piece and board modules — excellent value for learning and forking alike.
FAQ
Is JavaScript Tetris free to play?
Yes. JavaScript Tetris is completely free, runs in your browser, and needs no install or account.
Is JavaScript Tetris open source?
Yes. It hosts the original open-source code by jakesgordon, released under MIT. Source: https://github.com/jakesgordon/javascript-tetris
How do you play JavaScript Tetris?
Arrow keys move/rotate, space drops.
More like this
▶ Playable Hextris
Hexagon-flavored arcade puzzler: spin a central hex to stack and clear incoming colored blocks.
▶ Playable Invaderz
Space Invaders that breed: every wave descends from the last, and each generation gets smarter.
▶ Playable 2048
Slide tiles, merge matching numbers and chase the 2048 tile — the viral puzzle that became H5 gaming's Hello World.