J
John Hunter
# my python wrapping of pokereval -- results are exact
from pokereval import seven_cards, compare_two_hands
p0 = ('Ac', 'Tc')
p1 = ('Ah', '3h')
common = ('8c', '6h', '7h')
wins, losses, ties, ev = compare_two_hands( p0, p1, common)
assert( wins==517 and losses==439 and ties==34)
p0 = ('Qd', 'Kd')
p1 = ('Ac', '3s')
common = ('Kc', 'Jc', '4c')
wins, losses, ties, ev = compare_two_hands( p0, p1, common)
wins, losses, ties, ev = compare_two_hands( p0, p1, common)
assert( wins==537 and losses==453 and ties==0)
from pokereval import seven_cards, compare_two_hands
p0 = ('Ac', 'Tc')
p1 = ('Ah', '3h')
common = ('8c', '6h', '7h')
wins, losses, ties, ev = compare_two_hands( p0, p1, common)
assert( wins==517 and losses==439 and ties==34)
p0 = ('Qd', 'Kd')
p1 = ('Ac', '3s')
common = ('Kc', 'Jc', '4c')
wins, losses, ties, ev = compare_two_hands( p0, p1, common)
wins, losses, ties, ev = compare_two_hands( p0, p1, common)
assert( wins==537 and losses==453 and ties==0)