Tic-Tac-Toe on Python

a script

Download the script and run it with the Python!

  • The program has five main functions:
    1. Input validation: The proper input will be checked by the function.
    2. Game matrix visualizer: After each move from each player, the matrix will be printed by the function.
    3. Draw checker: The function will check whether the game is drawn or not.
    4. Judge: The function will check the game after each move to announce who the winner is.
    5. Game handler: The function will run the other functions and ask the inputs (such as the players’ name, coordination of the players’ movements.)