source/server/GameServer.py
def checkVisibleCardsReported(self):
        """Insure that no played cards were lost in update to self.visible_cards(only used when Shared_Board = True) """

        max_len = 0
        for key, scard_group in self.visible_cards_now.items():
            max_len = max_len + len(scard_group)
        self.v_cards = [p.visible_cards for p in self.players]
        if len(self.v_cards) == 0:
            self.v_cards = [{}]
        # v_cards contains a dictionary from each player/client
        # each dictionary contains all the played cards that player/client is aware of.
        # set self.visible_cards_now to the dictionary in v_cards with the most cards.
        #
        max_len = -1
        for v_cards_dict in self.v_cards:
            temp_length = 0
            for key, scard_group in v_cards_dict.items():
                temp_length = temp_length + len(scard_group)
            if temp_length > max_len:
                self.visible_cards_now = v_cards_dict
                max_len = temp_length
        return
Insure that no played cards were lost in update to self.visible_cards(only used when Shared_Board = True) 
Insure that no played cards were lost in update to self.visible_cards(only used when Shared_Board = True)
Insure that no played cards were lost in update to self . visible_cards ( only used when Shared_Board = True )
def checkVisibleCardsReported(self):
        max_len = 0
        for key, scard_group in self.visible_cards_now.items():
            max_len = max_len + len(scard_group)
        self.v_cards = [p.visible_cards for p in self.players]
        if len(self.v_cards) == 0:
            self.v_cards = [{}]
        max_len = -1
        for v_cards_dict in self.v_cards:
            temp_length = 0
            for key, scard_group in v_cards_dict.items():
                temp_length = temp_length + len(scard_group)
            if temp_length > max_len:
                self.visible_cards_now = v_cards_dict
                max_len = temp_length
        return
def checkVisibleCardsReported ( self ) : max_len = 0 for key , scard_group in self . visible_cards_now . items ( ) : max_len = max_len + len ( scard_group ) self . v_cards = [ p . visible_cards for p in self . players ] if len ( self . v_cards ) == 0 : self . v_cards = [ { } ] max_len = - 1 for v_cards_dict in self . v_cards : temp_length = 0 for key , scard_group in v_cards_dict . items ( ) : temp_length = temp_length + len ( scard_group ) if temp_length > max_len : self . visible_cards_now = v_cards_dict max_len = temp_length return
Insure that no played cards were lost in update to self.visible_cards(only used when Shared_Board = True)
Insure that no played cards were lost in update to self . visible_cards ( only used when Shared_Board = True )
"""Insure that no played cards were lost in update to self.visible_cards(only used when Shared_Board = True) """ # v_cards contains a dictionary from each player/client # each dictionary contains all the played cards that player/client is aware of. # set self.visible_cards_now to the dictionary in v_cards with the most cards. #
self