source/client/Controller.py
def pickUpPile(self, note):
        """Attempt to pick up the pile"""
        if self._state.turn_phase != Turn_Phases[1]:
            self.note = note
            return
        try:
            self._state.pickupPileRuleCheck(self.prepared_cards)
        except Exception as err:
            self.note = "{0}".format(err)
        else:
            if self._state.rules.play_pick_up:
                self._state.turn_phase = Turn_Phases[2] #Set turn phase to reflect forced action
                self.note = "Waiting for new cards to make required play."
            else:
                self._state.turn_phase = Turn_Phases[3] # No action required if rules.play_pick_up = False
            connection.Send({"action": "pickUpPile"})
Attempt to pick up the pile
Attempt to pick up the pile
Attempt to pick up the pile
def pickUpPile(self, note):
        if self._state.turn_phase != Turn_Phases[1]:
            self.note = note
            return
        try:
            self._state.pickupPileRuleCheck(self.prepared_cards)
        except Exception as err:
            self.note = "{0}".format(err)
        else:
            if self._state.rules.play_pick_up:
                self._state.turn_phase = Turn_Phases[2] 
                self.note = "Waiting for new cards to make required play."
            else:
                self._state.turn_phase = Turn_Phases[3] 
            connection.Send({"action": "pickUpPile"})
def pickUpPile ( self , note ) : if self . _state . turn_phase != Turn_Phases [ 1 ] : self . note = note return try : self . _state . pickupPileRuleCheck ( self . prepared_cards ) except Exception as err : self . note = "{0}" . format ( err ) else : if self . _state . rules . play_pick_up : self . _state . turn_phase = Turn_Phases [ 2 ] self . note = "Waiting for new cards to make required play." else : self . _state . turn_phase = Turn_Phases [ 3 ] connection . Send ( { "action" : "pickUpPile" } )
Attempt to pick up the pile
Attempt to pick up the pile
"""Attempt to pick up the pile""" #Set turn phase to reflect forced action # No action required if rules.play_pick_up = False
self
note