Codes for the ANIMATION/GAME using processing

I had this project in computer science. We will be making an animation, or a game using processing. I'm planning to make a snake or puzzle game. Can you help me finding out the the codes of the game using processing 1.5.1? or you can suggest the game and provide the codes.
Thank you so much!
