Public bug reported:

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 }
----------------------------------------------------------------------------------------------------

** Affects: pypoker-eval (Ubuntu)
     Importance: Undecided
         Status: New

-- 
poker_eval does not evaluate any iterations
https://bugs.launchpad.net/bugs/508585
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
universe-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to