source/server/GameServer.py
def nextRound(self):
        """Start the next round of play"""
        if self.round == -1:
            self.round = self.starting_round
        else:
            self.round += 1
        self.in_round = True
        if self.round > self.rules.Number_Rounds-1: #Need to take one off Number_Rounds because we index from zero
            #Game is over
            print("GAME OVER - CHECK LAST SCORE REPORT FOR FINAL RESULT")
            self.game_over = True
        self.prepareRound(len(self.players))
        for player in self.players:
            player.Send_deal(self.dealHands(), self.round)
        self.Send_scores()              # need to retransmit all the scores in case a player has joined between rounds
        self.turn_index = self.round    # define which player starts the next round.
        self.nextTurn()
Start the next round of play
Start the next round of play
Start the next round of play
def nextRound(self):
        if self.round == -1:
            self.round = self.starting_round
        else:
            self.round += 1
        self.in_round = True
        if self.round > self.rules.Number_Rounds-1: 
            print("GAME OVER - CHECK LAST SCORE REPORT FOR FINAL RESULT")
            self.game_over = True
        self.prepareRound(len(self.players))
        for player in self.players:
            player.Send_deal(self.dealHands(), self.round)
        self.Send_scores()              
        self.turn_index = self.round    
        self.nextTurn()
def nextRound ( self ) : if self . round == - 1 : self . round = self . starting_round else : self . round += 1 self . in_round = True if self . round > self . rules . Number_Rounds - 1 : print ( "GAME OVER - CHECK LAST SCORE REPORT FOR FINAL RESULT" ) self . game_over = True self . prepareRound ( len ( self . players ) ) for player in self . players : player . Send_deal ( self . dealHands ( ) , self . round ) self . Send_scores ( ) self . turn_index = self . round self . nextTurn ( )
Start the next round of play
Start the next round of play
"""Start the next round of play""" #Need to take one off Number_Rounds because we index from zero #Game is over # need to retransmit all the scores in case a player has joined between rounds # define which player starts the next round.
self