SirRender00 / texasholdem

A pure python package for Texas Hold 'Em poker
https://github.com/SirRender00/texasholdem/
MIT License
75 stars 19 forks source link

Optimize the copy method in TexasHoldEm class #200

Open SirRender00 opened 1 year ago

SirRender00 commented 1 year ago

That looks interesting. Does this work whatever the state of the hand ? (Preflop, Flop, Turn, River). Also does this keep the right game turn ?

Yes. For now this does what we want: it will copy the basic attributes of the TexasHoldEm object and then replays the last hand so that the generators are in the correct state.

A better future implementation would somehow be able to copy attributes directly without needing to replay the previous hand

Originally posted by @SirRender00 in https://github.com/SirRender00/texasholdem/issues/199#issuecomment-1596249803

LucasColas commented 7 months ago

Hello, Did you find a way to copy attributes directly without needing to replay the previous hand ?

SirRender00 commented 7 months ago

Not yet. Unfortunately, with my current obligations, this python package has been way down on my priorities. I'll still prioritize bug fixes but I won't be able to personally work too much on new features / enhancements at least in the near future