Freecodecamp Waypoint Counting Cards
Hello,
If you need help on waypoint Counting Cards, be careful spoiler ahead.
switch(card){
case 2:
case 3:
case 4:
case 5:
case 6:
count++;
break;
case 10:
case "J":
case "Q":
case "K":
case "A":
count--;
break;
}
if (count > 0){
return count + " Bet";
} else {
return count + " Hold";
}
Nenhum comentário:
Postar um comentário