"Poker Curious" <[EMAIL PROTECTED]> writes:
> 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}]}
You must set the board cards with placeholders, otherwise you end up
with undefined results. Of course it would be a lot better if the function
told you that instead of returning something useless. There is room for
improvement here.
y.poker_eval(game = "holdem", pockets = [["Ac", "As"], ["Kc","Ks"]], dead =
[], board = ['__', '__', '__', '__', '__'])
{'info': (1712304, 0, 1), 'eval': [{'winlo': 0, 'tielo': 0, 'winhi': 1410336,
'scoop': 1410336, 'loselo': 0, 'ev': 826, 'losehi': 292660, 'tiehi': 9308},
{'winlo': 0, 'tielo': 0, 'winhi': 292660, 'scoop': 292660, 'loselo': 0, 'ev':
173, 'losehi': 1410336, 'tiehi': 9308}]}
Cheers,
P.S. Nice nickname ;-)
--
+33 1 76 60 72 81 Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users