How to Run evaluator.py #116
Answered
by
SirRender00
HarrisChaudhary
asked this question in
Q&A
-
Hi - I'm new to vscode and Python, do you mind explaining how I can run your evaluator.py file under evaluator folder? Please and thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
SirRender00
Jul 3, 2022
Replies: 1 comment
-
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" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SirRender00
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! Yeah after you install the package, you should be able to run the excerpt as is, in the README: