You control the snake with the arrow keys or WASD. Your aim is to stay alive as long as possible, and eat the apple before the ants. To speed up at the cost of your food (length), press the Spacebar. If your snake disappears, press 0.
This is based off the traditional snake game, and a large quantity of the code comes from the original game.