ctm / mb2-doc

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

rebuy in level 9? #1195

Closed ctm closed 1 year ago

ctm commented 1 year ago

Investigate the possibility of a rebuy past the rebuy level.

On July 11th, a participant emailed me:

In tonight's PLO 6 handed, when I hovered over my renuy button, it said up to to through level 8. And in level 9 the button disappeared. But in that level ODB Phat Mack went bust and got a rebuy. I didn't get a hand #, but it was the last hand before tables were consolidated from 3 to 2.

My response was:

Is there any chance that the hand had started before the level switched? That's the way it's supposed to work. I didn't think about it until I got your email, but I think the check-box for chosing [sic] to rebuy disappears when the level switches even if there's a hand in play, so if you have the box checked before it switches, the setting remains but other people can't change the value of that setting for the period of time between when the level changes and the hand ends. That's. bug and I'll write it up (and fix it eventually).

and he replied:

 I honestly don't remember. I do remember seeing level 9 and my box was gone. I wasn't that close to rebuy so I wasn't watching that closely. It is possible that the hand started in level 8 and finished in 9. That makes sense.

So, this issue is just to see if what I think happened is indeed what happened. After that I'll create an issue for the problem of the check-box disappearing too soon.

ctm commented 1 year ago

It is indeed what I thought:

mb2=> select public_table_messages.id, received_at, message from public_table_messages join tables on table_id = tables.id where variant in (48, 43) and player_id is null and event_id = 4640 order by received_at asc;
...
 9362877 | 2023-07-12 00:45:00.282764+00 | {"OnLevel": ["Level 9", [299999, "2023-07-12T00:50:00.269368388Z"], false, 8]}
 9363044 | 2023-07-12 00:46:10.291632+00 | {"PlayerRebought": [17, 40000]}
...
mb2=> select hand_id from public_table_messages where id = 9363044;
 hand_id 
---------
  358290
(1 row)
...
 9362852 | {"Dealing": ["600 1200 Pot-Limit Omaha (High only)", 0, "PotLimit", null, false, 358290, true, false, 0]}
...
 9362875 | {"OnLevel": ["Level 9", [299999, "2023-07-12T00:50:00.269368388Z"], false, 8]}
...
 9363044 | {"PlayerRebought": [17, 40000]}
 9363045 | {"Bust": [9, 13, 4640, 0, 6, 0, null, false]}
 9363056 | {"MovedTo": [19, 5240]}
 9363058 | {"MovedTo": [17, 5242]}
 9363060 | {"MovedTo": [28, 5240]}
 9363062 | {"MovedTo": [6, 5242]}
 9363063 | "TableFinished"
(48 rows)