Use the arrow keys to move. Typical elements of snake game play still apply. Your score is based on how many pieces of food you collect. Each piece of food adds three units to your length. I don't really know why I feel like I need to explain this, as this is a classic game, but I have explained anyway.
If for some reason you can't figure this out on your own, refresh to play again.