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: code for 3 card brag game

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    1
    My Mood
    Tired
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default code for 3 card brag game

    hi guys, im james and new to programming. I currently use bluej java as my programming language and due to my lack of coding experience i've been having a tough time recently trying to put the pieces together.
    ive already got the three classes which are PackOfCards, Card and Card Display. My new class will obviously be ThreeCardBrag.

    for this game though i intend to:
    - draw a card for the computer.
    - then draw a card for me when i press 1.
    - ditto two more times so each of us has 3 cards.
    - then whoever has the higher cards overall is the winner, so i need to make each card worth a number of points i.e. 2 of hearts = 2pts -> Ace of clubs = 12pts.

    I am however struggling and despite large amounts of hours trying to code this with the help of research, i just keep ending back at square one, and its frustrating me.

    Any help with my situation would be much appreciated, thankyou.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: code for 3 card brag game

    Recommended reading: http://www.javaprogrammingforums.com...e-posting.html
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. The Following User Says Thank You to KevinWorkman For This Useful Post:

    jay_tee92 (December 20th, 2011)

Similar Threads

  1. Card Game Problem.
    By d'fitz in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 5th, 2011, 07:30 AM
  2. How to add card images to Blackjack game??
    By Jayc44 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 15th, 2011, 12:43 PM
  3. Card Game help....
    By macFs89H in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 2nd, 2011, 07:55 AM
  4. Card Game Problem....Need Help
    By macFs89H in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 28th, 2011, 07:30 AM
  5. help on war card game project
    By sc0field1 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 3rd, 2011, 04:51 AM