source/client/ClientState.py
def pickupPileRuleCheck(self, prepared_cards):
        """Confirm a player can pick up the pile with the prepared cards"""
        # check there are enough cards
        if self.discard_info[1] < self.rules.Pickup_Size:
            text = 'Cannot pickup the pile until there are ' + str(self.rules.Pickup_Size) + ' cards.'
            raise Exception(text)
        return self.rules.canPickupPile(self.discard_info[0], prepared_cards, self.played_cards, self.round)
Confirm a player can pick up the pile with the prepared cards
Confirm a player can pick up the pile with the prepared cards
Confirm a player can pick up the pile with the prepared cards
def pickupPileRuleCheck(self, prepared_cards):
        if self.discard_info[1] < self.rules.Pickup_Size:
            text = 'Cannot pickup the pile until there are ' + str(self.rules.Pickup_Size) + ' cards.'
            raise Exception(text)
        return self.rules.canPickupPile(self.discard_info[0], prepared_cards, self.played_cards, self.round)
def pickupPileRuleCheck ( self , prepared_cards ) : if self . discard_info [ 1 ] < self . rules . Pickup_Size : text = 'Cannot pickup the pile until there are ' + str ( self . rules . Pickup_Size ) + ' cards.' raise Exception ( text ) return self . rules . canPickupPile ( self . discard_info [ 0 ] , prepared_cards , self . played_cards , self . round )
Confirm a player can pick up the pile with the prepared cards
Confirm a player can pick up the pile with the prepared cards
"""Confirm a player can pick up the pile with the prepared cards""" # check there are enough cards
self
prepared_cards