Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/exercism/python
/ best_hands
Function
best_hands
exercises/practice/poker/poker.py:1–2 ·
view source on GitHub ↗
(hands)
Source
from the content-addressed store, hash-verified
1
def
best_hands(hands):
2
pass
Callers
15
test_single_hand_always_wins
Method · 0.90
test_highest_card_out_of_all_hands_wins
Method · 0.90
test_a_tie_has_multiple_winners
Method · 0.90
test_multiple_hands_with_the_same_high_cards_tie_compares_next_highest_ranked_down_to_last_card
Method · 0.90
test_winning_high_card_hand_also_has_the_lowest_card
Method · 0.90
test_one_pair_beats_high_card
Method · 0.90
test_highest_pair_wins
Method · 0.90
test_both_hands_have_the_same_pair_high_card_wins
Method · 0.90
test_two_pairs_beats_one_pair
Method · 0.90
test_both_hands_have_two_pairs_highest_ranked_pair_wins
Method · 0.90
test_both_hands_have_two_pairs_with_the_same_highest_ranked_pair_tie_goes_to_low_pair
Method · 0.90
test_both_hands_have_two_identically_ranked_pairs_tie_goes_to_remaining_card_kicker
Method · 0.90
Calls
no outgoing calls
Tested by
15
test_single_hand_always_wins
Method · 0.72
test_highest_card_out_of_all_hands_wins
Method · 0.72
test_a_tie_has_multiple_winners
Method · 0.72
test_multiple_hands_with_the_same_high_cards_tie_compares_next_highest_ranked_down_to_last_card
Method · 0.72
test_winning_high_card_hand_also_has_the_lowest_card
Method · 0.72
test_one_pair_beats_high_card
Method · 0.72
test_highest_pair_wins
Method · 0.72
test_both_hands_have_the_same_pair_high_card_wins
Method · 0.72
test_two_pairs_beats_one_pair
Method · 0.72
test_both_hands_have_two_pairs_highest_ranked_pair_wins
Method · 0.72
test_both_hands_have_two_pairs_with_the_same_highest_ranked_pair_tie_goes_to_low_pair
Method · 0.72
test_both_hands_have_two_identically_ranked_pairs_tie_goes_to_remaining_card_kicker
Method · 0.72