#NEWLINE# def build_matches( self , noise = 0 ) : #NEWLINE# #INDENT# "\n        A generator that returns player index pairs and match objects for a\n        round robin tournament.\n\n        Parameters\n        ----------\n        noise : float\n            The probability that a player's intended action should be flipped\n\n        Yields\n        -------\n        tuple\n            player pair index, match object\n        " #NEWLINE# for player1_index in range ( len ( match . players ) ) : #NEWLINE# #INDENT# for player2_index in range ( player1_index , len ( self . players ) ) : #NEWLINE# #INDENT# pair = ( self . players [ player1_index ] , self . opponents [ player2_index ] ) #NEWLINE# match = self . build_single_match ( pair , noise ) #NEWLINE# ( yield ( ( player1_index , player2_index ) , match ) )