A two-player Tic Tac Toe game written in C++ and Qt.
Use the Edit menu to choose Two Players or play as X against the Easy, Medium, or Impossible computer opponent. Easy plays randomly, Medium takes immediate wins and blocks but otherwise plays randomly, and Impossible uses perfect play.
qmake6 TicTacToe.pro
make
./TicTacToe.app/Contents/MacOS/TicTacToeThe rules are isolated in Game, which can be tested without a display server:
qmake6 tests/tictactoe_test.pro
make
./tictactoe_test.app/Contents/MacOS/tictactoe_testThe application emits structured Qt logging under the tictactoe.game category. Enable it selectively with:
QT_LOGGING_RULES='tictactoe.game.debug=true' ./TicTacToe.app/Contents/MacOS/TicTacToe