Skip to content

How to Run evaluator.py #116

Discussion options

You must be logged in to vote

Hey! Yeah after you install the package, you should be able to run the excerpt as is, in the README:

from texasholdem import Card
from texasholdem.evaluator import  evaluate, rank_to_string

assert evaluate(cards=[Card("Kd"), Card("5d")],
                board=[Card("Qd"),
                       Card("6d"),
                       Card("5s"),
                       Card("2d"),
                       Card("5h")]) == 927
assert rank_to_string(927) == "Flush, King High"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SirRender00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants