This site's content was compiled from 1993 to 2006. Beyond that, Google is your friend.

Solitaire Framework

Maintainer

David Raines

Description

This is an object-oriented framework for the development of solitaire card games.

The included paper Documenting Frameworks: Solitaire is not Alone which documents this framework is co-written by David Raines and Dr. Jim McKim.

A set of playing card images is included, and has been released to the public domain.

This distribution contains the following directories and files:

solitaire
This directory contains the framework source.
seahaven
Source for the Seahaven solitaire game.
canfield
Source for the Canfield solitaire game.
bitmaps
X11 bitmap files used by the framework
docs
This directory contains a postscript version of the paper Documenting Frameworks: Solitaire is not Alone by David Raines and Jim McKim. This paper documents the design and use of the framework.

To build new solitaire games

Very briefly, create a subclass of the game class to define the game layout. Create the root class by inheriting from that class and the VGame class. Create subclasses of Pile as needed to define rules of moving cards. Finally create a subclass of the Configuration class and the configuration.txt and help_text.txt files.

Playing the Games

Choose New Game from the Game menu. The cards will be dealt into the appropriate piles. The Instructions item from the Help menu on the main windows menu bar displays the contents of the help_text.txt file in a scrolling text window. This text is intended to explain the rules of the game.

The configuration.txt and help_text.txt files and the bitmaps directory MUST be in the current directory when you run the program.

Categories

Versions

Links

Supported compilers

Platforms

Licensing

Google
 
Web eiffelzone.com