This project is read-only.
Project Description
A basic framework for creating card games in .net.

Classes in library

Card

Represents a playing card. Has a Value and a Suit. Can be serialized and deserialized to string.

CardCollection

A collection of Cards. Contains methods for drawing a card, calculating total sum, accessing the cards, serializing, etc. Ideal for representing a hand, a meld, the table, etc. Inherit this class and add your own logic - or use extension methods to calculate score in various card games.

Deck

Based on the CardCollection, the deck can initialize a new set of regular playing cards with/without jokers. It can also shuffle the cards.

Player

An abstract base class representing a typical player in a card game.

Game

An abstract base class representing a typical card game. Controls main game flow, has a deck and you can add players to a game.

References

Check out this blog for more info: http://allantech.blogspot.com.
Get inspired to card games you want to make, here: http://www.pagat.com/

Last edited Jan 4, 2009 at 8:22 PM by AllanThraen, version 2