hi there, i'm checking out this excellent library, and i'm wondering how
someone might use the PokerGameServer class in a way that resumes a hand.
here's what i mean: let's say you start a hand in a straightforward way,
much like the example in poker-engine's simple.py. when you get to the flop,
you need to shut down your server. when you restart your server, you want to
resume the hand from where you were. what do you think would be the best way
to do this? i can figure out a solution myself, but i'm hoping people with
more experience with the codebase can recommend the best approach. the two
basic ideas i have:

1) pickle the PokerGameServer object. right now it doesn't pickle for
various reasons -- it's not clear how much work it would be to fix that.

2) save the history, then feed it back to a new instance of
the PokerGameServer. this is a little tricky for various reasons, such as
the is_directing flag needing to change states, or however to deal with
feeding previously dealt cards back to the class but still having it deal
more cards from a shuffler.

i would appreciate any thoughts on these approaches, or possibly something
else i didn't think of.

thanks!
adam
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to