One-dimensional Pac Man

1D Pac Man is Kenta Cho's sublime take on the 1980 Namco classic. There's only one button–change direction on the single axis of movement–but unlimited depth.

A clever idea, perfectly implemented.

At Hacker News, a commenter wrote a javascript bot that plays it automatically.