One Page Toys

Tic-tac-toe vs computer

You are X, always go first. The computer is O and uses minimax—optimal play, so wins are hard and draws are common.

Your turn — pick a square.

Tip: against perfect O, the best you can do from a bad opening is usually a draw.

How to play. You’re X and always move first—tap any empty square. The computer is perfect O (minimax), so wins are rare; draws are normal. New game clears the board.