Generation

class from descriptionWed, 16 Nov 2022

create a tic tac toe game with a char grid

class TicTacToe: def __init__(self): self.char_grid = [ ["-", "-", "-"], ["-", "-", "-"], ["-", "-", "-"] ] def display_grid(self): for row in self.char_grid: # print out the row for char in row: print(char, end="") print()

Questions about programming?Chat with your personal AI assistant