hippich / Bitcoin-Poker-Room

Sources for Bitcoin Poker Room.
http://betco.in
Other
132 stars 88 forks source link

hand history bug #102

Open hitego opened 13 years ago

hitego commented 13 years ago

I am UTG+1, but I seem to recall being first to act, and I raise using the pot button I click top "sit out" button everyone else folds mixenitup sits out next hand I sit out next hand in the hand history (most recent hand) the hand appears as green (won), but one player is missing from title: hitego, Trass, mixenitup, compiler 2011-07-25T11:13:05 0.06 (0.14 / 0.2) View (myrumpled)

the contents are corrupted: (flop turn river text precedes hand header, user names are missing, only four user actions shown (5 people present))

myrumpled was taking a long time to act in most cases, and had a timeout sit-out earlier

CORRUPTED HAND

* FLOP * [ ] * TURN * [ ] * RIVER * [ ] Betco.in Game #286933: holdem .02-.04-no-limit 2011-07-25T11:13:05 Table 'N/A' 10-max Seat #7 is the button : posts small blind 0.02 : posts big blind 0.04 * HOLE CARDS * Dealt to [Td Ts] : bets 0.14 : folds : folds : folds collected 0.20 from pot * SUMMARY * Total pot 0.20 | Rake 0.00 Board [ ] Seat 1: folded Seat 2: won (0.20) (Everybody else folded) Seat 3: folded Seat 4: folded

PREVIOUS HAND

Betco.in Game #286932: holdem .02-.04-no-limit 2011-07-25T11:12:35 Table 'N/A' 10-max Seat #4 is the button Seat 1: mixenitup (2.89 in chips) Seat 2: hitego (3.74 in chips) Seat 3: compiler (1.46 in chips) Seat 4: myrumpled (5.45 in chips) Seat 5: Trass (2.01 in chips) compiler: posts small blind 0.02 myrumpled: posts big blind 0.04 * HOLE CARDS Dealt to hitego [XXXX] Trass: folds mixenitup: calls 0.04 hitego: folds compiler: calls 0.02 myrumpled: checks \ FLOP * [4h Jc 3h] compiler: checks myrumpled: checks mixenitup: bets 0.08 compiler: folds myrumpled: calls 0.08 * TURN * [4h Jc 3h As] myrumpled: checks mixenitup: checks * RIVER * [4h Jc 3h As 5d] myrumpled: folds mixenitup collected 0.27 from pot * SUMMARY * Total pot 0.28 | Rake 0.01 Board [4h Jc 3h As 5d] Seat 1: mixenitup won (0.27) (Everybody else folded) Seat 2: hitego folded Seat 3: compiler folded Seat 4: myrumpled folded Seat 5: Trass folded

hippich commented 13 years ago

Thanx hitego.

Here is raw hand history for this game:

[('game', 0, 286933, 308, 189180.0938949585, 'holdem', '.02-.04-no-limit', [11315, 9779, 11429, 11298], 6, {9779: 374, 11298: 201, 11315: 304, 11429: 142}), ('position', 3), ('blind', 11298, 2, 0), ('position', 0), ('blind', 11315, 4, 0), ('position', -1), ('round', 'pre-flop', PokerCards([]), {9779: PokerCards([213, 239]), 11298: PokerCards([241, 223]), 11315: PokerCards([238, 237]), 11429: PokerCards([234, 202])}), ('position', 1), ('raise', 9779, 14, 14, 10), ('position', 2), ('fold', 11429), ('position', 3), ('fold', 11298), ('position', 0), ('fold', 11315), ('position', 1), ('position', -1), ('showdown', None, {9779: PokerCards([213, 239])}), ('end', [9779], [{'serial2delta': {11315: -4, 11298: -2, 9779: 6}, 'player_list': [11315, 9779, 11429, 11298], 'serial2rake': {9779: 0}, 'pot': 20, 'serial2share': {9779: 20}, 'type': 'game_state', 'foldwin': True, 'side_pots': {'building': 0, 'pots': [[20, 20]], 'last_round': 0, 'contributions': {0: {0: {9779: 14, 11298: 2, 11315: 4}}, 'total': {9779: 14, 11298: 2, 11315: 4}}}}, {'serials': [9779], 'pot': 20, 'type': 'resolve', 'serial2share': {9779: 20}}]), ('sitOut', 9779), ('sitOut', 11315)]

It is time to write tests for HH parsing code..

hitego commented 13 years ago

If you need another test case, here's another hand:

* FLOP * [ ] * TURN * [ ] * RIVER * [ ] Betco.in Game #289799: holdem 2-4-no-limit 2011-07-26T13:08:07 Table 'N/A' 10-max Seat #10 is the button : posts small blind 2.00 : posts big blind 4.00 * HOLE CARDS * Dealt to [Ts 5c] : folds collected 6.00 from pot * SUMMARY * Total pot 6.00 | Rake 0.00 Board [ ] Seat 1: won (6.00) (Everybody else folded) Seat 2: folded

hippich commented 13 years ago

Thank you hitego.

Here is raw hand history:

[('game', 0, 289799, 507, 115802.85185599327, 'holdem', '2-4-no-limit', [9779, 10562], 9, {10562: 115670L, 9779: 40000}), ('position', 1), ('blind', 10562, 200, 0), ('position', 0), ('blind', 9779, 400, 0), ('position', -1), ('round', 'pre-flop', PokerCards([]), {10562: PokerCards([192, 231]), 9779: PokerCards([239, 221])}), ('position', 1), ('fold', 10562), ('position', 0), ('position', -1), ('showdown', None, {9779: PokerCards([239, 221])}), ('end', [9779], [{'serial2delta': {10562: -200, 9779: 200}, 'player_list': [9779, 10562], 'serial2rake': {9779: 0}, 'pot': 600, 'serial2share': {9779: 600}, 'type': 'game_state', 'foldwin': True, 'side_pots': {'building': 0, 'pots': [[600, 600]], 'last_round': 0, 'contributions': {0: {0: {10562: 200, 9779: 400}}, 'total': {10562: 200, 9779: 400}}}}, {'serials': [9779], 'pot': 600, 'type': 'resolve', 'serial2share': {9779: 600}}]), ('sitOut', 10562)]