ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

raise cap bug: currently counting short all-in raises as raises #1231

Closed ctm closed 11 months ago

ctm commented 11 months ago

Currently, a raise even a single chip is counted as a raise against the raise cap when there is a raise cap. Such a short raise does not, however, reopen betting, nor is the next raise allowed to be for the full bet amount, so I can see how such a short raise might not be counted against the raise cap, but I can't tell by looking at the BARGE Rule Book or the TDA Rules, so I've asked Dan.

Dan asked an authority and confirmed that a "short" all-in raise (i.e. one where a future player is limited to filling it up to the bet size) does not count toward the cap, but a raise that is >= half the bet size does, as does a bet that is large enough to cross that half-size threshold, so if someone raises all-in for 1/3rd of the bet size and another player goes all in for another 1/3rd, that first raise doesn't count toward the cap, but the second one does.

This is trivial to fix, but I'm done programming for the day.

ctm commented 11 months ago

Fixed. Deploying now, albeit without my laptop being plugged in and its battery is a bit wonky.