poker_eval does not evaluate any iterations

Asked by mathrawka

Calling poker_eval always results in the winning hand to have a 100% equity, even when there are still cards to come. In the following example is an equity calculation of AA vs KK preflop. It only does one iteration and says AA has 100% equity.

IPython session:
----------------------------------------------------------------------------------------------------
In [1]: from pokereval import PokerEval

In [2]: pe =PokerEval ()

In [3]: pe.poker_eval(game='holdem', pockets=[ ["Ah", "Ad"], ["Kh", "Ks"] ], board=[] )
Out[3]:
{'eval': [{'ev': 1000,
           'losehi': 0,
           'loselo': 0,
           'scoop': 1,
           'tiehi': 0,
           'tielo': 0,
           'winhi': 1,
           'winlo': 0},
          {'ev': 0,
           'losehi': 1,
           'loselo': 0,
           'scoop': 0,
           'tiehi': 0,
           'tielo': 0,
           'winhi': 0,
           'winlo': 0}],
 'info': (1, 0, 1)}
----------------------------------------------------------------------------------------------------

Here is the output from the PokerStove appication:
----------------------------------------------------------------------------------------------------
Text results appended to pokerstove.txt

  61,642,944 games 0.141 secs 437,183,999 games/sec

Board:
Dead:

 equity win tie pots won pots tied
Hand 0: 81.946% 81.71% 00.23% 50371344 142614.00 { AA }
Hand 1: 18.054% 17.82% 00.23% 10986372 142614.00 { KK }
----------------------------------------------------------------------------------------------------

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu pypoker-eval Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #508585.

Revision history for this message
Johan Euphrosine (proppy) said :
#1

You have to use "__", for unknown cards:
>>> from pokereval import PokerEval
>>> pe =PokerEval ()
>>> pe.poker_eval(game='holdem', pockets=[ ["Ah", "Ad"], ["Kh", "Ks"] ], board=["__", "__", "__", "__", "__"] )
{'info': (1712304, 0, 1), 'eval': [{'scoop': 1399204, 'ev': 819, 'tiehi': 7923, 'loselo': 0, 'winlo': 0, 'tielo': 0, 'losehi': 305177, 'winhi': 1399204}, {'scoop': 305177, 'ev': 180, 'tiehi': 7923, 'loselo': 0, 'winlo': 0, 'tielo': 0, 'losehi': 1399204, 'winhi': 305177}]}

Revision history for this message
mathrawka (jon-licq) said :
#2

Ahh, I didn't realize that it was necessary to do so.

Thanks!

Revision history for this message
mathrawka (jon-licq) said :
#3

I didn't understand the proper way to use the library.

Revision history for this message
Johan Euphrosine (proppy) said :
#4

Feel free to register on https://mail.gna.org/listinfo/pokersource-users and post to <email address hidden> if you have more question about pypoker-eval.

Can you help with this problem?

Provide an answer of your own, or ask mathrawka for more information if necessary.

To post a message you must log in.