@@ -0,0 +1,935 @@
+class Bid(object):%0A    %22%22%22Represents a bid made by a player%22%22%22%0A%0A    def __init__(self, face, frequency):%0A        %22%22%22Creates a bid of specified frequency for specified dice face.%22%22%22%0A        self._face = face%0A        self._frequency = frequency%0A%0A    def getFace(self):%0A        %22%22%22Returns the dice face of this bid.%22%22%22%0A        return self._face%0A%0A    def getFrequency(self):%0A        %22%22%22Returns the bidded frequency.%22%22%22%0A        return self._frequency%0A%0A    def isValidBid(self, bid):%0A        %22%22%22Returns true iff the supplied bid is valid compared to current bid.%0A%0A        A valid bid increases the face, frequency or both.%22%22%22%0A        if bid.getFace() %3C 1 or bid.getFace() %3E 6:%0A            return False%0A        elif bid.getFrequency %3C 1:%0A            return False%0A        elif bid.getFace() %3E self._face:%0A            return True%0A        elif bid.getFrequency() %3E self._frequency:%0A            return True%0A        else:%0A            return False%0A

Create a Bid class