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 4 of 4

Thread: Need some assistance with my card game

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

    Question Need some assistance with my card game

    I'm making a card game for my final project for grade 12 computer science. It's sort of like war I guess, I'm currently trying to order the cards from highest to lowest. I'm trying to figure out enums but I'm having difficulty, any help on what to do? Maybe a suit class to use in the card class?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,255
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: Need some assistance with my card game

    Do you have any specific questions about the program?
    If you don't understand my answer, don't ignore it, ask a question.

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

    Default Re: Need some assistance with my card game

    It's not very specific right now as I'm having trouble getting a proper structure together, but the main question is how should I go about setting the suit values to each card?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,255
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: Need some assistance with my card game

    how should I go about setting the suit values to each card?
    An enum would do that very nicely.

    See the tutorial:
    http://docs.oracle.com/javase/tutori...vaOO/enum.html
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Recursive Assistance with a Word Puzzle Game
    By inflames098 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 24th, 2012, 09:33 AM
  2. Hi Lo card game
    By ryanc33 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 13th, 2012, 07:01 PM
  3. Help with Card Game
    By JSeol14 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 21st, 2012, 11:46 PM
  4. A Card Game
    By Paytheprice in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 25th, 2012, 07: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