I have used the MiniMax Algorithm to make the computer's choice in the single player mode.
Run python tic_tac_toe.py
to play the game. The default Player_O is the computer. You can change the name, to play in the multiplayer mode. The GUI requires kivy with python3.