A command line tic tac toe game implemented in python in which the computer never loses. The computer makes it moves with the help of a decision making algorithm called minimax.
- Clone the repository
- Run game.py using python interpreter
In game.py go to the bottom of the file and change the if block to the following:
if __name__ == "__main__":
x_player = HumanPlayer('X')
o_player = GeniusComputerPlayer('O')
t = TicTacToe()
play(t, x_player, o_player, print_game=True)