Tic-Tac-Toe game with an AI (Artificial Intelligence) in the object-oriented way
-
There is a 3x3 board, empty at the beginning.
-
Program randomly choose a first player (a human player or a computer player).
-
First player will use a "X" sign, the second player will use a "O" sign.
-
First player put X on empty space.
-
Second player put O on empty space. ...
-
That would be too easy for you :) Let's complicate it a bit by adding AI - computer player should try to predict next human's move and block it!
Project made for Codecool programming course.