aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/blackjack.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-08-03 16:42:59 -0400
committerhistoria <[not public]>2026-08-03 16:42:59 -0400
commitadda27dba5bf7bf1dee62159f0cbc0bd90734751 (patch)
tree2a68c0bad42c3561cfcd7a32eee52f7ff7eb14f9 /internal/casino/blackjack.go
parentfe15f2ffeb5685b056650a61aa0e23965ef51e95 (diff)
downloadthehouseoficarus-adda27dba5bf7bf1dee62159f0cbc0bd90734751.tar.gz
fix: blackjack game formatting
Diffstat (limited to 'internal/casino/blackjack.go')
-rw-r--r--internal/casino/blackjack.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/casino/blackjack.go b/internal/casino/blackjack.go
index 80a4d15..ff334c9 100644
--- a/internal/casino/blackjack.go
+++ b/internal/casino/blackjack.go
@@ -399,7 +399,7 @@ func (t *blackjackTable) startRound() []Event {
p.declinedInsurance = true
}
}
- roundEvent := t.event("New blackjack hand!", true)
+ roundEvent := t.event("", true)
roundEvent.Blackjack = t.snapshot(false)
events := []Event{roundEvent}
if t.dealer.cards[1].rank == "A" {
@@ -528,7 +528,7 @@ func (t *blackjackTable) settle() []Event {
t.dealer.cards = append(t.dealer.cards, t.shoe.draw())
}
dealerTotal, _ := t.dealer.total()
- dealerEvent := t.event("Dealer's hand:", true)
+ dealerEvent := t.event("", true)
dealerEvent.Blackjack = t.snapshot(true)
events := []Event{dealerEvent}
dealerBlackjack := t.dealerBlackjack()
@@ -662,7 +662,7 @@ func (t *blackjackTable) menu() string {
func handScore(hand *blackjackHand) string {
total, soft := hand.total()
- if !soft {
+ if !soft || total == 21 {
return fmt.Sprintf("%d", total)
}
return fmt.Sprintf("%d or %d", total-10, total)