An implementation of the tic tac toe game in C++ (gameplay in terminal).
You can chose between a human player and a computer player by modifying the players array.
for a human player : players[0] = new humanPlayer('X', 'O');
for a computer player : players[1] = new computerPlayer('O', 'X');
The minimax algorithm is used for the computer player, so the computer player's moves are always optimal.
stavliv/tic_tac_toe
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|