Are there any very simple open source games available just to demonstrate the basics of the programming techniques? Preferably something which fits in to a couple hundred lines of actual code. Specifically, I'm looking for an open source game written in Objective-C and Cocoa.
I would also appreciate one written in C.
All the projects that I find online are relatively complicated.