Class Diagram two

Posted on 2012-09-10
Last Modified: 2013-04-30
Problem 1: Another card game
There are 52 cards in a deck (Joker is not included). Game starts with shuffling of the cards. Once cards are shuffled, cards are distributed to the players. Game is simple. Each player takes the card which is at top of their collection. Player who has put the high value card takes all the cards and adds it at the bottom of his collection. Game is over when a player loses all the cards. Player who has maximum number of cards is the winner.
Rules of the game:
•      Value of the cards in ascending order: 2,3,4,5,6,7,8,9,10,J,Q,K, A
•      If player puts same value of different colour then highest is decided in the order (descending). Hearts (highest), Diamonds, Spade and Clubs (lowest). This means 2 Hearts is greater than 2 Clubs.
•      3 of Clubs is greater than 2 of Hearts.
Please suggest me how to Identify the class, property and methods needed to implement solution for this.
Question by:praveen1981
    LVL 18

    Expert Comment

    Hi again,

    This looks like some sort of class assignment. It's against the rules for us to help with class work.

    Why don'y you attempt a solution and then we can help based on what you've done.



    Accepted Solution


    Architecure helped me in solving this problem.

    Author Closing Comment

    Architecute of my team guide me in solving this problem

    Expert Comment

    Hi Praveen,

    Could you share the solution given by your Architect

    Plz send your solution to

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now