Search:

Type: Posts; User: tonynsx

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    993

    Re: help with if statements

    I have the program working the way I want, but I still have a question. On my if conditions for the "ace" card, I have it checking if the playerTotal is < or > 5. But, playerTotal is assigned...
  2. Replies
    8
    Views
    993

    Re: help with if statements

    Thanks for your help.....

    I'll work on the random number generator like you said. I'll make it 0-something instead of 1-10.

    It should be 0-9 right? Just from the top of my head!
  3. Replies
    8
    Views
    993

    Re: help with if statements

    I think I've got it. The problem was that I didn't put the if condition for the "ace" cards in the "player points", now it seems to be working fine. I've changed my code to test it, but it looks...
  4. Replies
    8
    Views
    993

    Re: help with if statements

    I did a system.out to show the values being counted

    This works fine when there is no "ace" card selected


    Three of Hearts, 3
    Eight of Spades, 8
    Six of Spades, 6

    Player total: 17
  5. Replies
    8
    Views
    993

    help with if statements

    In the following code, each cards and suits have specific values except for the "Ace" card. I have the correct results when the computer randomly chooses anything except for the "Ace" card. When it...
Results 1 to 5 of 5