I've dedicated a web site to the best freeware games on the net, many of which include source code. There are definitely some neat game ideas. If anyone has any games they'd like to contribute or are inspired to create one, by all means, drop me a line. Thanks for the bandwidth. Enjoy.
http://netfiles.freespaces.com
You can quickly view the source code of any language with this utility: