Preview:
from mainGame import TicTacToe
 
directions = """
This is Tic-Tac-Toe!
To win, get 3 in a row!
This requires 2 players.
To place an O or and X on a square,
Enter the number of the square!
Good Luck!"""
 
print(directions)
 
#check if we're in main file and runs game if main file is run
if __name__ == "__main__":
  #create a game object(an instance of TicTacToe)
  
  game = TicTacToe()
  game.run_game()
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter