Hey all,
I just downloaded the pypoker-eval code to play around with, and am getting
weird results.
This code:
>>> y = PokerEval()
>>> y.poker_eval(game = "holdem", pockets = [["Ac", "As"], ["Kc", "Ks"]],
dead = [], board = [])
returned this response:
{'info': (1, 0, 1), 'eval': [{'winlo': 0, 'tielo': 0, 'winhi': 1, 'scoop':
1, 'loselo': 0, 'ev': 1000, 'losehi': 0, 'tiehi': 0}, {'winlo': 0, 'tielo':
0, 'winhi': 0, 'scoop': 0, 'loselo': 0, 'ev': 0, 'losehi': 1, 'tiehi': 0}]}
Which (according to the documentation in the pokereval.py file) means that,
iterating "exhaustively," AcAs wins once, KcKs loses once.
I decided to add iterations to see if anything changed:
>>> y.poker_eval(game = "holdem", pockets = [["Ac", "As"], ["Kc", "Ks"]],
dead = [], board = [], iterations = 100000)
which returned:
{'info': (100000, 0, 1), 'eval': [{'winlo': 0, 'tielo': 0, 'winhi': 100000,
'scoop': 100000, 'loselo': 0, 'ev': 1000, 'losehi': 0, 'tiehi': 0},
{'winlo': 0, 'tielo': 0, 'winhi': 0, 'scoop': 0, 'loselo': 0, 'ev': 0,
'losehi': 100000, 'tiehi': 0}]}
Which means that AcAs beats KcKs 100000 times out of 100000, which is so
improbable as to be impossible. To be sure, I tested it with all sorts of
combinations of uppercase and lowercase (and various hand combinations to
boot) to no avail.
I installed through apt-get, and believe it has all the files it needs.
I would greatly appreciate any help.
Thanks in advance.
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users