Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Card Game Urgent!

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Card Game Urgent!

    I need someone to create a class called Card that can be used to represent a playing card.
    A Card should have a suit (heart, diamond, club, or spade) and a numeric value (lets use ace as 1 up through king as 13).
    Create a class called Deck that can be used to represent a deck of 52 playing cards.
    The Deck class should have an array of type Card that contains one of each possible card.
    The Deck constructor should create a sorted deck of Cards (like you just took it out of the box).
    In addition, the Deck class should have a shuffle() method.
    You may use whatever approach you like to create a well-shuffled deck of cards.
    In addition to the shuffle() method, the Deck class should have a drawCard() method that picks a card at random from the deck and somehow marks it so it cannot be redrawn.
    Finally, the Deck class should have a removeCard() method that takes a specific card as a parameter and removes it from the Deck (for games that do not use both Jacks etc.)
    Thanks for all your help, I need this rather urgently.


  2. #2
    Administrator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,848
    Thanks
    64
    Thanked 2,645 Times in 2,615 Posts

    Default Re: Card Game Urgent!

    We're here to help students learn how to program in java. If your trying to learn java, post your code and some questions about the problems you are having with it.

Similar Threads

  1. Hi Lo card game
    By ryanc33 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 13th, 2012, 07:01 PM
  2. Help with Card Game
    By JSeol14 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 21st, 2012, 11:46 PM
  3. A Card Game
    By Paytheprice in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 25th, 2012, 07:30 AM
  4. Card Game Problem.
    By d'fitz in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 5th, 2011, 08:30 AM
  5. Card Game help....
    By macFs89H in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 2nd, 2011, 08:55 AM