source/server/GameServer.py
def Send_buyingOpportunity(self):
        """ Let eligible players know there's a buying opportunity

        Used in games with with Buy_Option = True (i.e. Liverpool)
        where you can buy the top discard if the next player doesn't want
        it.  If there are N players, then N-2 players are eligible to buy card
        (neither player who discarded, nor current active player are eligible).
        """
        for p in self.players:
            p.want_card = None     # reset all buying responses to None
        info = self.getDiscardInfo()
        i_max = len(self.players) - 2
        for i_count in range(i_max):
            index = (self.turn_index + i_count + 1) % len(self.players)
            self.players[index].Send({"action": "buyingOpportunity", "top_card": info[0].serialize()})
 Let eligible players know there's a buying opportunity

        Used in games with with Buy_Option = True (i.e. Liverpool)
        where you can buy the top discard if the next player doesn't want
        it.  If there are N players, then N-2 players are eligible to buy card
        (neither player who discarded, nor current active player are eligible).
        
Let eligible players know there's a buying opportunity
Used in games with with Buy_Option = True
where you can buy the top discard if the next player doesn't want
it.  If there are N players, then N-2 players are eligible to buy card
(neither player who discarded, nor current active player are eligible).
Let eligible players know there ' s a buying opportunity Used in games with with Buy_Option = True where you can buy the top discard if the next player doesn ' t want it . If there are N players then N - 2 players are eligible to buy card ( neither player who discarded nor current active player are eligible ) .
def Send_buyingOpportunity(self):
        for p in self.players:
            p.want_card = None     
        info = self.getDiscardInfo()
        i_max = len(self.players) - 2
        for i_count in range(i_max):
            index = (self.turn_index + i_count + 1) % len(self.players)
            self.players[index].Send({"action": "buyingOpportunity", "top_card": info[0].serialize()})
def Send_buyingOpportunity ( self ) : for p in self . players : p . want_card = None info = self . getDiscardInfo ( ) i_max = len ( self . players ) - 2 for i_count in range ( i_max ) : index = ( self . turn_index + i_count + 1 ) % len ( self . players ) self . players [ index ] . Send ( { "action" : "buyingOpportunity" , "top_card" : info [ 0 ] . serialize ( ) } )
Let eligible players know there's a buying opportunity
Used in games with with Buy_Option = True (i.e.
Let eligible players know there ' s a buying opportunity Used in games with with Buy_Option = True ( i . e .
""" Let eligible players know there's a buying opportunity

        Used in games with with Buy_Option = True (i.e. Liverpool)
        where you can buy the top discard if the next player doesn't want
        it.  If there are N players, then N-2 players are eligible to buy card
        (neither player who discarded, nor current active player are eligible).
        """ # reset all buying responses to None
self