Arrow keys or WASD to move, space to pause. Swipe on a phone.
Eat the green squares. Don't hit the walls or yourself.