main.py

PHOTO EMBED

Mon Aug 08 2022 20:08:07 GMT+0000 (Coordinated Universal Time)

Saved by @ammu123

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()
content_copyCOPY