-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible incorrect hand evaluation #6
Comments
Hi eukrit, this does look like a straight to me: TJQKA, also known as a broadway straight. I think everything is working as expected. |
Oh yeah your're right! I was confused with T. Sorry ihendley. |
@ihendley Hi! I met an issue with Royal Flash combination. Is it known issue? |
Regarding evaluating an empty board - that is not supported. I have removed the comment in the docstring claiming otherwise. I have also added a Royal Flush hand rank class, so you should see "Royal Flush" instead of "Straight Flush" if you re-run your example on the latest treys. |
Could you have a look at my screenshot? I think the hand evaluation is wrong because that is not supposed to be straight.
`
from card import *
from evaluator import *
from deck import *
deck = Deck()
board = deck.draw(5)
print(Card.print_pretty_cards(board))
evaluator = Evaluator()
players = [deck.draw(2) for i in range(10)]
for i in range(len(players)):
handstr = Card.print_pretty_cards(players[i])
evalint = evaluator.evaluate(board, players[i])
ranknum = evaluator.get_rank_class(evalint)
rankname = evaluator.class_to_string(ranknum)
`
The text was updated successfully, but these errors were encountered: