Use the arrow keys to move. Avoid the edge and avoid the purple squares.
The goal of the game is to get as long as possible. You do so by eating the red apples that appear on the screen. However, whenever you eat an apple, you leave behind remains. Over time, these remains turn into harmful, purple objects that will kill you if you touch them.