I'm making blackjack in C++ and I'm nearing the end! I'm making my winning and loss statements. But my issue is that I need my if statements to determine not only whether or not the dealer's/players hand is greater or less than one another it needs to check if either has gone over 21.
So having the if statements determine that isn't the problem I just need it to not go through one if statement if the other is over 21
if (dealerTotal > 21 || playerTotal > dealerTotal)//For win
{
}
if (playerTotal > 21 || dealerTotal > playerTotal)// For lose
{
}
So one the first one it needs to go through that IF UNLESS "playerTotal is over 21" and the opposite for the next IF
Any suggestions would be greatly appreciated. Thank you so much!