Really appreciated for your answer jwilkins.oboe!,
I´ll try to explain what I would like to do with my code:
we start with count = 0, and we want to asign a value +1 if the cards are between 2 - 6.
That´s why I wrote
if (card >= 2 || card <= 6) each value between 2 and 6 means:
2, 3, 4, 5 and 6.
Next to this, I declared that count shlud added + 1 in to count value:
Well, until this point, is it right?
inside my logic process (maybe completely wrong), if the values from cards 7, 8 and 9 are not relevant (cause count will not be anyway modified) due added value = 0, why should we declare something for they?
The other cases we need to declare are cards from 10 until ‘A’, which decrease the count - 1 each card. Well, if we declare that all values different than: 2, 3, 4, 5 and 6 should decrease the count with -1 it should works…right? at least we want to have a finally acount result diferent from 0 to return “Bet” or “Hold”.
Then I wrote
else (count < 0) return count + " Hold". Here I tried to declare that each value under 0 equal “Hold”. Is should work, isn´t it?