I have written a program to play the card game hearts. It's not a super-duper pro level product, just my own little effort. But it does have some interesting things in it that I put in for fun, like being able to reveal hands, adjust the rate of play, replay a hand, and an auto-play mode. It's GPL'ed.
More info and pointers to the download and source
are here.