class_docstr: An Arena class where any 2 agents can be pit against each other.
class_docstr_tok: ["An","Arena","class","where","any","2","agents","can","be","pit","against","each","other","."]
docstr: Plays num games in which player1 starts num/2 games and player2 starts
  num/2 games.
  
  Returns:
      oneWon: games won by player1
      twoWon: games won by player2
      draws:  games won by nobody
docstr_tok: ["Plays","num","games","in","which","player1","starts","num\/2","games","and","player2","starts","num\/2","games",".","Returns",":","oneWon",":","games","won","by","player1","twoWon",":","games","won","by","player2","draws",":","games","won","by","nobody"]
code: def playGames(self, num, verbose=False):
      """
      Plays num games in which player1 starts num/2 games and player2 starts
      num/2 games.
  
      Returns:
          oneWon: games won by player1
          twoWon: games won by player2
          draws:  games won by nobody
      """
  
      num = int(num / 2)
      oneWon = 0
      twoWon = 0
      draws = 0
      for _ in tqdm(range(num), desc="Arena.playGames (1)"):
          gameResult = self.playGame(verbose=verbose)
          if gameResult == 1:
              oneWon += 1
          elif gameResult == -1:
              twoWon += 1
          else:
              draws += 1
  
      self.player1, self.player2 = self.player2, self.player1
  
      for _ in tqdm(range(num), desc="Arena.playGames (2)"):
          gameResult = self.playGame(verbose=verbose)
          if gameResult == -1:
              oneWon += 1
          elif gameResult == 1:
              twoWon += 1
          else:
              draws += 1
  
      return oneWon, twoWon, draws
  
imports: from tqdm import tqdm
  from parl.utils import logger
label_desc: Use image node_id 3 for calling the Arena obj's underlying member method code with example usage: obj.playGames(num, verbose) and returns: oneWon,  twoWon,  draws