Skip to content

Commit cabe25c

Browse files
committed
add emoji to debug output
1 parent 7553737 commit cabe25c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,14 @@ function playHand ({ rules, bettingStrategy, roll = rollD6, balance = 0 }) {
8585
rules
8686
)
8787

88-
if (process.env.DEBUG) console.log(`[roll] ${hand.result} (${hand.diceSum})`)
88+
if (process.env.DEBUG) console.log(`[🎲] ${hand.result} (${hand.diceSum})`)
8989

9090
if (process.env.DEBUG) console.log('--> Settling bets!')
9191
bets = settle.all({ rules, bets, hand })
92-
9392
const payouts = bets.payouts
9493
if (payouts?.total) {
9594
balance += payouts.total
96-
if (process.env.DEBUG) console.log(`[payout] new payout $${payouts.total} ($${balance})`)
95+
if (process.env.DEBUG) console.log(`[💰] new payout $${payouts.total} ($${balance})`)
9796
} else if (process.env.DEBUG) {
9897
console.log('[payout] no payout')
9998
}

0 commit comments

Comments
 (0)