Apple’s released many juicy bits of the OS X 10.8 Darwin core
as open source. The chess application is in the list, too; notable for the
multiplayer GameKit integration. Read and learn!
It’s odd to me that Apple’s gone to such length to remove “Mac” from
the OS branding, but “Mac OS X” is right there at the top of this page.