Closed ctm closed 5 months ago
FWIW, this bug caused warnings in the logs from this evening's tournament, because it was a lammer tournament, so I'll take a quick stab at it right now.
Fixed. Deploying now.
Oops. It triggered in yesterday's evening game.
2024-03-01T04:19:14.373Z WARN [mb2::tournament] At end of hand: Expected 30000, got 40000
2024-03-01T04:19:16.381Z WARN [mb2::tournament] At beginning of hand: Expected 30000, got 40000
2024-03-01T04:19:54.874Z WARN [mb2::tournament] At end of hand: Expected 30000, got 40000
2024-03-01T04:19:56.880Z WARN [mb2::tournament] At beginning of hand: Expected 30000, got 40000
2024-03-01T04:20:37.797Z WARN [mb2::tournament] At end of hand: Expected 30000, got 50000
2024-03-01T04:20:39.803Z WARN [mb2::tournament] At beginning of hand: Expected 30000, got 50000
2024-03-01T04:21:30.191Z WARN [mb2::tournament] At end of hand: Expected 40000, got 60000
2024-03-01T04:21:32.199Z WARN [mb2::tournament] At beginning of hand: Expected 40000, got 60000
...
2024-03-01T04:50:44.350Z WARN [mb2::tournament] At beginning of hand: Expected 90000, got 120000
2024-03-01T04:51:22.556Z WARN [mb2::tournament] At end of hand: Expected 90000, got 120000
2024-03-01T04:51:24.563Z WARN [mb2::tournament] At beginning of hand: Expected 90000, got 120000
2024-03-01T04:51:44.801Z WARN [mb2::tournament] At end of hand: Expected 90000, got 120000
2024-03-01T04:51:46.806Z WARN [mb2::tournament] At beginning of hand: Expected 90000, got 120000
D'oh! Those are rebuys, not lammer redemptions. I must have overlooked those when I added the chip checker and then overlooked them again when I fixed the chip checker to properlly work with lammer redemptions.
Fixed. Deploying now.
Fix so that when people redeem lammers, the chip checker understands.
Yesterday's evening tournament was "Pot Limit Big O (with lammers)" and the chip checker started squeeking:
its final complaint:
There were 12 players, each starts with 10,000 and has two lammers for 5,000, so 240,000 is the right amount. I'm surprised that the checker was off by 70,000 rather than 120,000, but that suggests that the chip checker takes redeemed lammers into account in some circumstances and not others.
I'm labeling this
high priority
because it should be trivial to reproduce and fix, and I really don't want the logs containing complaints about non-existent bugs. OTOH, we play very few tournaments that have lammers, so this isn't really that pressing.