Guide the snake through a tile grid, collect food, and avoid collisions with the walls or your own body. This version is a compact TypeScript and canvas implementation: React mounts the canvas, while refs hold snake, direction, and apple state for frame-by-frame updates.
Built in TypeScript. Explore more projects on Projects