main.py

PHOTO EMBED

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

Saved by @projectpython

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 an X on a square,
Enter the number of the square!
Good Luck!"""

print(directions)

# check if we're in main file
# run game if main file is run
if __name__ == "__main__":
  # create a game object
  # an instance of TicTacToe
  game = TicTacToe()
  game.run_game()



content_copyCOPY