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()
Preview:
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