This commit is contained in:
Daniel Odendahl Jr
2018-09-17 16:47:16 +00:00
parent 23407cad4c
commit 0b18768832
+3
View File
@@ -59,6 +59,9 @@ module.exports = class BlackjackCommand extends Command {
if (total > 21) {
reason = `You drew ${card.display}, total of ${total}! Bust`;
break;
} else if (total === 21) {
reason = 'You hit 21';
break;
}
} else {
const dealerTotal = this.calculate(dealerHand);