Tetris
Seven tetrominoes, ten columns, gravity that speeds up. Clear lines to score, four at once to score properly.
A matrix of cells is enough for most of the games worth playing. These four are built with the same primitives as the rest of this site — no canvas, no game engine, no image assets.
Every board is a CSS grid of divs. State lives in a reducer or a ref, and the same hairline and accent tokens the rest of the site uses colour the cells.
Shapes are binary matrices in source — rotation is a matrix transpose, collision is an array lookup. You can read the whole rulebook in the file.
Keyboard first with touch controls underneath, real scoring, and pause. Sudoku generates a fresh grid and verifies it has exactly one solution.