source/client/TableView.py
def Network_scores(self, data):
        """Notification from the server of the scores, in turn order"""

        round_scores = data["round_scores"]
        total_scores = data["total_scores"]
        self.results = {}
        self.results_cmdscreen = ''
        for idx in range(len(self.player_names)):
            self.results[self.player_names[idx]] = total_scores[idx]
            self.results_cmdscreen= self.results_cmdscreen + "  [" + \
                                    self.player_names[idx] + ": " + str(round_scores[idx]) + " " + \
                                    str(total_scores[idx]) +  "] \r \n "
            print("{0} scored {1} this round, and  has {2} total".format(
                self.player_names[idx], round_scores[idx], total_scores[idx]))
        print(self.results_cmdscreen)
Notification from the server of the scores, in turn order
Notification from the server of the scores, in turn order
Notification from the server of the scores in turn order
def Network_scores(self, data):
        round_scores = data["round_scores"]
        total_scores = data["total_scores"]
        self.results = {}
        self.results_cmdscreen = ''
        for idx in range(len(self.player_names)):
            self.results[self.player_names[idx]] = total_scores[idx]
            self.results_cmdscreen= self.results_cmdscreen + "  [" + \
                                    self.player_names[idx] + ": " + str(round_scores[idx]) + " " + \
                                    str(total_scores[idx]) +  "] \r \n "
            print("{0} scored {1} this round, and  has {2} total".format(
                self.player_names[idx], round_scores[idx], total_scores[idx]))
        print(self.results_cmdscreen)
def Network_scores ( self , data ) : round_scores = data [ "round_scores" ] total_scores = data [ "total_scores" ] self . results = { } self . results_cmdscreen = '' for idx in range ( len ( self . player_names ) ) : self . results [ self . player_names [ idx ] ] = total_scores [ idx ] self . results_cmdscreen = self . results_cmdscreen + "  [" + self . player_names [ idx ] + ": " + str ( round_scores [ idx ] ) + " " + str ( total_scores [ idx ] ) + "] \r \n " print ( "{0} scored {1} this round, and  has {2} total" . format ( self . player_names [ idx ] , round_scores [ idx ] , total_scores [ idx ] ) ) print ( self . results_cmdscreen )
Notification from the server of the scores, in turn order
Notification from the server of the scores in turn order
"""Notification from the server of the scores, in turn order"""
self
data