Eat balls smaller than you and avoid the larger ones. Get big enough to consume the entire map!
I wanted to see how long it would take me to recreate this fun arcade game I remember playing when I was younger. It took me about 30 min. I recommend others try to recreate it as well as a sort of programming exercise.