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
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...
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users