-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Costas Piliotis wrote:
> Hi, I've written a test using pokereval in python and I think I'm
> not getting the right results. For this python code:
>
> import pokereval; pe=pokereval.PokerEval() p=pe.poker_eval(game =
> "holdem", pockets = [ ["Tc", "Ac"], ["3h", "ah"], ["8c",
> "6h"],["Ad","As"]], dead = [], board = [], iterations=1086008 )
> print p
>
>
import pokereval;
pe=pokereval.PokerEval()
p=pe.poker_eval(game = "holdem",
pockets = [ ["Tc", "Ac"], ["3h", "ah"],
["8c", "6h"],["Ad","As"]],
dead = [],
board = ["__","__","__","__","__"]
)
print p
Will give you the result you expect:
{'info': (1086008, 0, 1), 'eval': [{'winlo': 0, 'tielo': 0, 'winhi':
139416, 'scoop': 139416, 'loselo': 0, 'ev': 130, 'losehi': 938708,
'tiehi': 7884}, {'winlo': 0, 'tielo': 0, 'winhi': 121687, 'scoop':
121687, 'loselo': 0, 'ev': 114, 'losehi': 956437, 'tiehi': 7884},
{'winlo': 0, 'tielo': 0, 'winhi': 186534, 'scoop': 186534, 'loselo':
0, 'ev': 172, 'losehi': 897243, 'tiehi': 2231}, {'winlo': 0, 'tielo':
0, 'winhi': 630487, 'scoop': 630487, 'loselo': 0, 'ev': 582, 'losehi':
447637, 'tiehi': 7884}]}
There should be a warning when you iterate more than the number of
combinations. The "__" are placeholders that will be replaced.
> I'd expect to see results different from:
>
> {'info': (1086008, 0, 1),
>
> 'eval': [ {'scoop': 0, 'ev': 0, 'tiehi': 0, 'loselo': 0, 'winlo':
> 0, 'tielo': 0, 'losehi': 1086008, 'winhi': 0}, {'scoop': 0, 'ev':
> 0, 'tiehi': 0, 'loselo': 0, 'winlo': 0, 'tielo': 0, 'losehi':
> 1086008, 'winhi': 0}, {'scoop': 0, 'ev': 0, 'tiehi': 0, 'loselo':
> 0, 'winlo': 0, 'tielo': 0, 'losehi': 1086008, 'winhi': 0},
> {'scoop': 1086008, 'ev': 1000, 'tiehi': 0, 'loselo': 0, 'winlo': 0,
> 'tielo': 0, 'losehi': 0, 'winhi': 1086008}] }
>
> It's effectively saying that Ad, As win every time... I'm pretty
> sure my iterations count is right - 44c5 is 1086008... Doesn't
> really matter anyway; with 30 million iterations it shows the same
> thing :-(
>
> I really like this library and would like to use it for some
> simulations, but I can't for the life of me figure out what it is I
> need to do to get the right values from it... Anyone got any
> thoughts on what I'm doing wrong? I'm using Python 2.6 on Fedora
> 12, and got these libs from the fedora RPM's...
Cheers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAktzSdwACgkQ8dLMyEl6F212uQCeLqoPcnoXeMgSus7kdrYdc8Xm
ppEAnAjySVXB+KYdmZUjskUV5aMWHdEG
=dejH
-----END PGP SIGNATURE-----
<<attachment: loic.vcf>>
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
