main.py

PHOTO EMBED

Sat Aug 06 2022 01:32:57 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 the main file,
# run game if main file is run
if __name__ == "__main__":
    # create a game object
    game = TicTacToe()
    game.run_game()
    
content_copyCOPY