1. def phazed_score(hand):
    2. # Implement this function.
    3. value_dict = {'A': 25, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, '0': 10, 'J': 11, 'Q': 12,
    4. 'K': 13}
    5. value_list = [_[0] for _ in hand]
    6. int_value_list = [value_dict[i] for i in value_list]
    7. return sum(int_value_list)
    8. if __name__ == '__main__':
    9. # Example calls to the function.
    10. print(phazed_score(['9D', '9S', '9D', '0D', '0S', '0D']))
    11. print(phazed_score(['2D', '9S', 'AD', '0D']))
    12. print(phazed_score([]))

    game-spec_1_4_translate.pdf
    game-spec.pdf