from . import printboard
from . import check

from . import reverseplayer
from . import tiecheck
from . import winnercheck
from . import gameover

# ------------- Functions ---------------

# Play a game of tic tac toe
def play_ttt():

  # Show the initial game board
  printboard.print_board()
  
  # Loop until the game stops (winner or tie)
  
  while tiecheck.game_status:

    # Handle a turn
    check.manage_turn(check.first_player)
    
    # Check if the game is over
    gameover.game_over()
    
    # Flip to the other player
    reverseplayer.reverse_player()
      
  # Since the game is over, print the winner or tie
  if winnercheck.winner == "X" or winnercheck.winner == "O":
    print(winnercheck.winner + " have won.")
  elif winnercheck.winner == None:
    print(" tie between X and O.")


8fa072435a3a43739047a3bc13b1d286e8a26c6d
<mask token>

<mask token>


def play_ttt():
    printboard.print_board()
    while tiecheck.game_status:
        check.manage_turn(check.first_player)
        gameover.game_over()
        reverseplayer.reverse_player()
    if winnercheck.winner == 'X' or winnercheck.winner == 'O':
        print(winnercheck.winner + ' have won.')
    elif winnercheck.winner == None:
        print(' tie between X and O.')

from . import printboard
from . import check
from . import reverseplayer
from . import tiecheck
from . import winnercheck
from . import gameover


def play_ttt():
    printboard.print_board()
    while tiecheck.game_status:
        check.manage_turn(check.first_player)
        gameover.game_over()
        reverseplayer.reverse_player()
    if winnercheck.winner == 'X' or winnercheck.winner == 'O':
        print(winnercheck.winner + ' have won.')
    elif winnercheck.winner == None:
        print(' tie between X and O.')

from . import printboard
from . import check

from . import reverseplayer
from . import tiecheck
from . import winnercheck
from . import gameover

# ------------- Functions ---------------

# Play a game of tic tac toe
def play_ttt():

  # Show the initial game board
  printboard.print_board()
  
  # Loop until the game stops (winner or tie)
  
  while tiecheck.game_status:

    # Handle a turn
    check.manage_turn(check.first_player)
    
    # Check if the game is over
    gameover.game_over()
    
    # Flip to the other player
    reverseplayer.reverse_player()
      
  # Since the game is over, print the winner or tie
  if winnercheck.winner == "X" or winnercheck.winner == "O":
    print(winnercheck.winner + " have won.")
  elif winnercheck.winner == None:
    print(" tie between X and O.")

