Menu Close

Java Tic-Tac-Toe

Basic Java program to play tic-tac-toe. Originally developed around 2001.

No AI or anything here. Just a set of pre-programmed decisions based on a specific play strategy:

  • Easy mode is basically random choose.
  • Medium mode uses a center-move based strategy and will block the user.
  • Hard mode uses a center-move based strategy, will avoid traps, and try to pin the user in a trap.