Use the left and right arrow keys to eat food. Avoid the enemies, who can also eat. If they eat it subtracts your score and length. I will add a highscore board soon. The more you eat, the more your score increases by. WARNING!!!!!!!!!!!!!!!! You should play in full screen mode for the better graphics.
The book "Designing Digital Games" book helped me do a little bit.