Andre Allavena пишет:
>
> There should be a file titled "test.py" with some good samples at the end.
>
>  pokereval.poker_eval(game = "holdem", fill_pockets = 1, pockets = [
> ["As", "3s"],  ["__", "__"],  ["__", "__"]], dead = [], board = ["__",
> "Qs", "2c", "Ac", "Kc"])
>
>
> PS: Sorry for the top posting. Please complain to my admin and WebMS
> Exchange.
>
if i got it right...
see bug-1823.py in pypoker-eval

import sys
sys.path.insert(0, ".")
sys.path.insert(0, ".libs")

from pokereval import PokerEval

pokereval = PokerEval()

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

{'info': (41122620, 0, 1), 'eval':
[{'winlo': 0, 'tielo': 0, 'winhi': 21047586, 'scoop': 21047586,
'loselo': 0, 'ev': 540, 'losehi': 17722550, 'tiehi': 2352484}, {'winlo':
0, 'tielo': 0, 'winhi': 8782291, 'scoop': 8782291, 'loselo': 0, 'ev':
229, 'losehi': 30984737, 'tiehi': 1355592},
{'winlo': 0, 'tielo': 0, 'winhi': 8782291, 'scoop': 8782291, 'loselo':
0, 'ev': 229, 'losehi': 30984737, 'tiehi': 1355592}]}



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

Reply via email to