Solitaire

Headless Java Game Core for programmers

by David Blackledge

javadoc

I searched the Internet, but could not find a freely available base/core for a Solitaire game I wanted to write for the TiVo in Java. So I wrote one. Here it is for anybody else doing the same search. You just have to build the interface to interact with it and render its state.

Download cbd.game.solitaire.jar

It should be extensible enough to change the rules using subclasses for different variations of the game. I think a few key elements are missing to do that, though, like a factory or two. In the meantime, I tried it out and have made a FreeCell engine (beta, still) included in this package, the below instructions cover most of its functionality as well.

Anyhow... here's how it works: