Blackjack Program Scoring Help?

Discussion in 'Programming General' started by mexistani, Apr 14, 2010.

Blackjack Program Scoring Help?
  1. Unread #1 - Apr 14, 2010 at 7:00 PM
  2. mexistani
    Joined:
    Jul 17, 2008
    Posts:
    455
    Referrals:
    0
    Sythe Gold:
    0

    mexistani Forum Addict
    Banned

    Blackjack Program Scoring Help?

    I simply need help on how to make my scoring system work. I thought it would work, but I'm not sure how to retrieve it from my deck class. Do I used score.setText (???[getValue])?.......
    Please don't criticize the way I made this program, I'm novice, & yes, I know arrays would have helped. I'm not going into inheritance yet either.

    BLKJK
    DECK CLSS



    CARD CLSS
     
  3. Unread #2 - Apr 14, 2010 at 7:10 PM
  4. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    Blackjack Program Scoring Help?

    Can you explain the issue a bit more? What value are you attempting to get and do what with it?
     
  5. Unread #3 - Apr 16, 2010 at 11:59 PM
  6. aznguy94
    Joined:
    Feb 11, 2007
    Posts:
    304
    Referrals:
    0
    Sythe Gold:
    0

    aznguy94 Forum Addict

    Blackjack Program Scoring Help?

    I really don't want to look through all that...what is your problem here? This is a player vs. player program right? If so, a blackjack program should be pretty simple...what exactly are you trying to score? If it's scoring of each hand then the lowest sum wins...if you're trying to score the overall game then you have to create your own scoring system seeing as there is no betting...

    Anyways, I'm having a lot of trouble reading your code as it has poor OOP imo...there's no way your main should be that long for something so simple.
     
  7. Unread #4 - Apr 18, 2010 at 8:58 AM
  8. jdubb
    Joined:
    Apr 5, 2010
    Posts:
    24
    Referrals:
    0
    Sythe Gold:
    0

    jdubb Newcomer

    Blackjack Program Scoring Help?

    Do you mean how do you try and keep track of your score? I've made a couple of simple games and I usually just make a panel class called Score and make some fields and methods in there to put the scores on labels and such, then add them into the main panel. Like if you're using a border layout, my score panel is usually on the north or west. Hope this helped.
     
< C++ or Java??? | Good book on winAPI? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site