A command line tic tac toe game with a perfect AI