A straight port of an old p5.js side project: arrow keys steer a snake around a grid, apples make it grow, and hitting the wall or your own tail ends the run.
The original silently reset on death with no feedback. The rebuilt version freezes the board, overlays a Game Over screen with your score, and waits for Space to restart — and the head is now colored differently from the body so you can actually tell which way you're facing at a glance.
Movement is on a fixed tick timer independent of the frame rate, so the game speed stays consistent across displays and browsers.