This code works and returns swiftly:

print pokereval.poker_eval(
        game = "holdem",
        fill_pockets = 1,
        pockets = [ ["As", "3s"],  ["__", "__"]],
        dead = [],
        board = ["__", "Qs", "2c", "Ac", "Kc"]
        )

This code takes very very long to calculate and usually ends up with a
glibc memory error of some kind:

print pokereval.poker_eval(
        game = "holdem",
         fill_pockets = 1,
          pockets = [ ["As", "3s"],  ["__", "__"],  ["__", "__"]],
                dead = [],
          board = ["__", "Qs", "2c", "Ac", "Kc"]
                )

Notice the only difference is one additional pocket of __, __.


BTW, does this mean the c poker-eval library is no longer maintained --
that the python one has replaced it?

-- 
edA-qa mort-ora-y
http://disemia.com/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Have a look in my brain:
        http://brainbrain.eu/
        
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to