Closed big-c-note closed 4 years ago
I am on my mobile on top of a welsh mountain atm, so unfortunately can’t test to confirm, but I think I see what it is: You have an 8 of spades in your table cards list and your player hand cards list, and this causes issues in the lookup table due to its illegality.
Oops, must have had a mistake in my game simulation allowing this. Going to leave this issue open for a little bit in case I can reproduce on a legal hand later
If you want to push your full script to a WIP PR I can give it a quick look if that helps
Closing issue, it is working as expected
When running simulations I find the following error. I don't understand the bit encoding/lookup tables yet - do you know what's going on? I can avoid flushes for now though. FYI, deuces has the exact same error and it is irrespective of suit.
from pluribus.game.card import Card
from pluribus.game.evaluation import Evaluator
evaluator = Evaluator()
player_cards = [Card(rank='ace', suit='spades'), Card(rank='8', suit='spades')]
hand_class_int = evaluator.get_rank_class(player_hand_rank)
hand_class_str = evaluator.class_to_string(hand_class_int).lower()
print(f"rank: {player_hand_rank}, hand: {hand_class_str}")