Source: https://mayphus.org/tetris/
Title: Tetris
---
type: project
---

Tetris

Tetris was a compact game-implementation study centred on a Racket version using a world loop and image renderer. The inspected code defines a 10 × 20 board, seven piece shapes, collision checks, rotation offsets, line clearing, a ghost piece, next-piece preview, scoring, and increasing gravity.

Its controls are left and right to move, up to rotate, down to drop one row, and Space to hard-drop; R restarts after game over. Source also survives for C, C++, Python, Haskell, Emacs Lisp, and a TypeScript Canvas version, making this a small cross-language implementation archive.

Run recipes survive, but these programs were not executed or compared during this recovery. No original gameplay capture was recovered, and this public page does not host a playable browser game.
