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...
Type: Posts; User: tonynsx
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...
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!
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...
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
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...