I figured out why I am getting the crash.

I noticed that bug-1823.py worked fine.

Since bug-1823.py code passed an empty pocket card, I got curious
because it didn't crash.

I copy/pasted the following line into test.py

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

Note:  It uses fill_pockets = 1 and ["__", "__"] to specify 1 empty
pocket.

I ran "python test.py x y z" and the above line executed without
crashing.

I modified the line to have two empty pocket cards, by adding another
["__", "__"].

Now it crashed.

One empty pocket and the code works.
Two empty pockets and the code crashes.




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

Reply via email to