-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Petteri Räty wrote:
> 1. The docs pokereval.py don't match the behavior of the function.
> There it says that board has a default of [] but when you try
> running the function without board it doesn't work.
>
>>>> PokerEval().poker_eval(game='holdem', pockets=[ ["tc", "ac"],
>>>>
> ["3h", "ah"]]) Traceback (most recent call last): File "<stdin>",
> line 1, in <module> File
> "/usr/lib/python2.5/site-packages/pokereval.py", line 241, in
> poker_eval result = _pokereval.poker_eval(*args, **kwargs)
> TypeError: function takes at least 3 arguments (2 given)
>
> 2. And poker_eval doesn't really seem to work in the first place or
> am I missing something? Seems to just give me ties instead of
> enumerating anything.
>
>>>> PokerEval().poker_eval(game='holdem', pockets=[ ["tc", "ac"],
>>>>
> ["3h", "ah"]],board=[],iterations=1000) {'info': (1000, 0, 1),
> 'eval': [{'winlo': 0, 'tielo': 0, 'winhi': 0, 'scoop': 0, 'loselo':
> 0, 'ev': 500, 'losehi': 0, 'tiehi': 1000}, {'winlo': 0, 'tielo': 0,
> 'winhi': 0, 'scoop': 0, 'loselo': 0, 'ev': 500, 'losehi': 0,
> 'tiehi': 1000}]}
You must add placeholders to the board for enumeration board =
['__','__','__','__','__']
Check the test.py file for more examples.
Cheers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkiYwJgACgkQ8dLMyEl6F20IoACfQrAERSdi5X8sbwpoAkm+JPG4
MXcAoJbJg/SxfyBFOGPuO5fQD2Nbn2PK
=oP6n
-----END PGP SIGNATURE-----
begin:vcard
fn:Loic Dachary
n:Dachary;Loic
org:pokersource
adr:;;12 bd Magenta;Paris;;75010;France
email;internet:[EMAIL PROTECTED]
title:Senior Developer
tel;work:+33 9 51 18 43 38
tel;cell:+33 6 64 03 29 07
x-mozilla-html:FALSE
url:http://dachary.org/
version:2.1
end:vcard
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users