class_docstr: Play tictactoe against a randomly acting opponent
class_docstr_tok: ["Play","tictactoe","against","a","randomly","acting","opponent"]
code: def display(self):
      state = self._state[0]
      s = ""
      for row in range(3):
          for col in range(3):
              if np.all(state[row][col] == TicTacToeEnvironment.EMPTY):
                  s += "_"
              if np.all(state[row][col] == TicTacToeEnvironment.X):
                  s += "X"
              if np.all(state[row][col] == TicTacToeEnvironment.O):
                  s += "O"
          s += "\n"
      return s
  
file_path: deepchem/deepchem/rl/envs/tictactoe.py
imports: import numpy
  import copy
  import random
  import deepchem
label_desc: Use image node_id 7 for calling the TicTacToeEnvironment obj's underlying member method code with example usage: obj.display() and returns: s