Skip to main content
SK Play Labs logoSK Play Labs

Tic-Tac-Toe

Beat an unbeatable AI (or settle for a draw).

Level
First

Your move (X)

0
Wins
0
Draws
0
Losses

Runs entirely in your browser — no signup, and your scores stay on your device.

About this game

Get three of your marks in a row — across, down, or diagonally — before the computer does. On its hardest setting the AI uses the minimax algorithm to play optimally, so the best you can force is a draw; easier settings play less than perfectly so you can win. You can also pick who goes first.

Strategy

Open in the centre — it's part of four different winning lines. Then look for a 'fork': a move that makes two threats at once, which your opponent can't block both of. On Hard the AI plays perfectly, so a flawless game ends in a draw; drop to Easy for real winning chances.

How to play

  1. 1Pick a difficulty and who moves first.
  2. 2Click an empty square to place your mark.
  3. 3The computer responds immediately.
  4. 4Line up three in a row to win — or hold the AI to a draw.

Controls

  • Click / TapPlace your mark
  • New gameReset the board

Features

  • Minimax AI that never loses on Hard — the best you can force is a draw.
  • Three difficulty levels, from beatable to flawless.
  • Pick who moves first; keeps a running win/draw/loss tally.

Frequently asked questions

Can I beat the Hard AI?

No — on Hard the computer plays a mathematically perfect game (minimax), so a flawless game by you ends in a draw. Drop the difficulty to open up winning chances.

More board & strategy games