"""
This exercise stub and the test suite contain several enumerated constants.

Since Python 2 does not have the enum module, the idiomatic way to write
enumerated constants has traditionally been a NAME assigned to an arbitrary,
but unique value. An integer is traditionally used because it’s memory
efficient.
It is a common practice to export both constants and functions that work with
those constants (ex. the constants in the os, subprocess and re modules).

You can learn more here: https://en.wikipedia.org/wiki/Enumerated_type
"""


# Score categories.
# Change the values as you see fit.
YACHT = None
ONES = None
TWOS = None
THREES = None
FOURS = None
FIVES = None
SIXES = None
FULL_HOUSE = None
FOUR_OF_A_KIND = None
LITTLE_STRAIGHT = None
BIG_STRAIGHT = None
CHOICE = None


def score(dice, category):
    pass

@@ -784,41 +784,227 @@
 ne%0A%0A
-%0Adef score(dice, category):%0A    pass
+scores = %7B%0A    YACHT: 50%0A%7D%0A%0Adef score_yacht(dice):%0A    if len(set(dice)) == 1:%0A        return scores.YACHT%0A    else:%0A        return 0%0A%0Adef score(dice, category):%0A    if (category == YACHT):%0A        return score_yacht(dice)
 %0A

Implement score_yacht