views:

716

answers:

3

I'm looking for open source projects for card games like Black Jack or Solitaire to get an idea on some GUI/Mac OSX desktop programming. I'm curious if anyone knows of any that're based on Objective-C/Cocoa that I can read/learn from?

A: 

Try searching SourceForge for things like solitaire or blackjack. It'll even let you filter projects based on the language they're written in, so you can look specifically for code you can understand.

Chris Lutz
A: 

You might also try Freshmeat. They have a Mac department, although it takes some further filtering to get down to Cocoa only (excluding Cocoa Touch, Java, Qt, etc.).

Peter Hosey
+2  A: 

Apple's GeekGameBoard example sounds like the kind of thing you're looking for. It does Klondike solitaire using Core Animation. Jens Alfke (the original author of the example) has been working on expanding this example into a framework to support the iPhone and enable more game types.

Brad Larson
Ugh, why didn't I look there. Thanks Brad! Exactly what I was looking for.
Coocoo4Cocoa