source/client/Controller.py
def makeForcedPlay(self, top_card):
        """Complete the required play for picking up the pile, (used for games with play_pick_up true)"""
        self.note = "Performing the play required to pick up the pile."
        #Get key for top_card (we know it can be auto-keyed), and then prepare it
        key = self._state.getValidKeys(top_card)[0]
        #Can't just call prepared card b/c of turn phase checking
        self.prepared_cards.setdefault(key, []).append(top_card)
        #Set turn phase to allow play and then immediately make play
        self._state.turn_phase = Turn_Phases[3]
        self.play()
Complete the required play for picking up the pile, (used for games with play_pick_up true)
Complete the required play for picking up the pile, (used for games with play_pick_up true)
Complete the required play for picking up the pile ( used for games with play_pick_up true )
def makeForcedPlay(self, top_card):
        self.note = "Performing the play required to pick up the pile."
        key = self._state.getValidKeys(top_card)[0]
        self.prepared_cards.setdefault(key, []).append(top_card)
        self._state.turn_phase = Turn_Phases[3]
        self.play()
def makeForcedPlay ( self , top_card ) : self . note = "Performing the play required to pick up the pile." key = self . _state . getValidKeys ( top_card ) [ 0 ] self . prepared_cards . setdefault ( key , [ ] ) . append ( top_card ) self . _state . turn_phase = Turn_Phases [ 3 ] self . play ( )
Complete the required play for picking up the pile, (used for games with play_pick_up true)
Complete the required play for picking up the pile ( used for games with play_pick_up true )
"""Complete the required play for picking up the pile, (used for games with play_pick_up true)""" #Get key for top_card (we know it can be auto-keyed), and then prepare it #Can't just call prepared card b/c of turn phase checking #Set turn phase to allow play and then immediately make play
self
top_card