pj4533 / pn2ps

Convert PokerNow.club logs into PokerStars hand history format
MIT License
6 stars 5 forks source link

set initial stacks #11

Closed albertborsos closed 4 years ago

albertborsos commented 4 years ago

I think it is possible to set the initial stacks if you extends the Seat X: lines with the following data in parenthesis.

In pokerstars, it looks like:

PokerStars Hand #214671151654:  Hold'em No Limit (50/100) - 2020/05/30 11:30:49 ET
Table 'Adelinda II' 6-max (Play Money) Seat #3 is the button
Seat 1: Jumbo413 (10278 in chips) 
Seat 2: Stemko7 (6973 in chips) 
Seat 3: krca60 (8019 in chips) 
Seat 4: vasi1963 (25935 in chips) 
Seat 5: bobosapp (10000 in chips) 
Seat 6: 6up 7966 (82088 in chips) 
vasi1963: posts small blind 50
bobosapp: posts big blind 100
*** HOLE CARDS ***

I did not play for real money, so i do not know what should it be if it is $.

The initial stacks are exists in the original log files in the following way:

"-- starting hand #1 (dealer: ""kervallin @ 28d4kax8ps"") --",2020-05-29T18:27:03.528Z,159077682353378
"The admin approved the player ""Tasi @ gKf3XcCGy2"" participation with a stack of 1000.",2020-05-29T18:26:28.232Z,159077678823779
"The admin approved the player ""Dani @ BfrfwBqXYA"" participation with a stack of 1000.",2020-05-29T18:19:00.835Z,159077634083951
"The admin approved the player ""Andris @ i0BBK8VTZw"" participation with a stack of 1000.",2020-05-29T18:18:09.347Z,159077628935195
"The admin approved the player ""Áron @ KqPrDJjSfQ"" participation with a stack of 1000.",2020-05-29T18:17:57.040Z,159077627704560
"The admin approved the player ""kervallin @ 28d4kax8ps"" participation with a stack of 1000.",2020-05-29T18:17:53.770Z,159077627377530
"The player ""bobo @ O7q--fndwt"" created the game with a stack of 1000.",2020-05-29T18:16:07.904Z,159077616792815
pj4533 commented 4 years ago

yeah you are right, I left that out on purpose for now. the issue it that it includes that stack calculation on each hand, and getting it to be correct hand to hand is not trivial. I have code that sooooorta does it. Will mark as an enhancement for now.

pj4533 commented 4 years ago

btw, if i can fix the edge cases with blinds and other hand import errors, then calculating the stacks hand to hand should be easy.

albertborsos commented 4 years ago

It is already a good MVP. I am just curious about if it already calculates the stacks (HM3 does), then is not it enough to add only the initial stacks and the new/rebuyer players stack? But I think it is necessary for the replay feature.

Take your time, I do not want to urge you. I just saw your project today and now I had time to test your tool with yesterday party's data :)

pj4533 commented 4 years ago

right right, would be nice for the hand replay feature. i am guessing its probably needed each hand and thats how the replay works, but its worth testing.

pj4533 commented 4 years ago

0.0.4