TicTacToe created using the MiniMax algorithm, which allows the computer player to play a realistic and optimal solution when it's his turn.
To run the program, follow these commands:
- Open the terminal in the where src files are.
- Run command: g++ TicTacToe.cpp heleperFunctions.cpp heleperFunctions.h -o main
- Run: main.exe
-
You can play the game in two modes:
- mode in which two players compete against each other
- mode in which the player plays against the computer (AI)
-
Once you choose a mode, you cannot change it, you can only play in that mode
-
The result is recorded and printed after each game played
-
The computer player is always oks (O) player