Click here to Skip to main content
15,881,812 members
Articles / Programming Languages / C#

Cards Game Library

Rate me:
Please Sign up or sign in to vote.
4.40/5 (20 votes)
29 Aug 2008CPOL2 min read 112K   9K   66  
A library for creating a cards games with Silverlight, with two sample Solitaire games.
using System;
using System.Collections.Generic;
using System.Text;

namespace Cards.Data
{
    public enum CardSuit
    {
        Spades = 1, 
        Hearts, 
        Diamonds, 
        Clubs
    }

    public enum CardRank
    {
        Ace = 1, 
        Deuce, 
        Three, 
        Four, 
        Five, 
        Six, 
        Seven, 
        Eight, 
        Nine, 
        Ten, 
        Jack,
        Queen, 
        King
    }

    public enum CardColor
    {
        Black,
        Red
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader Link Development
Egypt Egypt
IF YOU WANT TO IMPROVE YOUR SOFTWARE, DON'T TEST MORE; DEVELOP BETTER.

http://bishoylabib.blogspot.com

Comments and Discussions