Tic-Tac-Toe

The timeless 3-in-a-row duel — take on an AI that never loses, or dial it back to casual.

Loads instantly in your browser — no download.

Embed Tic-Tac-Toe

Paste this wherever you want the game to appear. It is free, needs no account, and the game carries no ads and no third-party trackers. Please keep the credit link underneath — that is the only thing we ask in return.

Size

Responsive keeps the frame inside your column on a phone. Fixed sizes are easier to drop into an older layout.

HTML to paste

<div style="position:relative;width:100%;aspect-ratio:16/10">
  <iframe src="https://www.gamedavinci.com/embed/tic-tac-toe/" title="Tic-Tac-Toe"
    style="position:absolute;inset:0;width:100%;height:100%;border:0"
    allow="fullscreen; autoplay; gamepad" loading="lazy"></iframe>
</div>
<p><a href="https://www.gamedavinci.com/game/tic-tac-toe/">Tic-Tac-Toe</a> by <a href="https://www.gamedavinci.com/">GameDavinci</a></p>

Or just the iframe URL

For game portals and directories that ask for a URL rather than markup.

About this game

Tic-Tac-Toe gets a neon makeover with a twist: the opponent thinks several moves ahead. Play X against an AI powered by the minimax algorithm, which exhaustively searches every possible line of play to guarantee it never loses on Unbeatable mode — the best you can hope for is a draw. Prefer a lighter challenge? Switch to Casual mode, where the AI occasionally drops in a random move, opening the door for a real win. Every square is a fully accessible button, so you can play by clicking, tapping on mobile, or navigating with Tab and confirming with Enter or Space. Win, lose, or draw, the three winning cells light up with a glowing cyan pulse and a result banner appears with a one-click Play Again button to jump straight into a rematch. A persistent scoreboard tracks your wins, losses, and draws across sessions, so you can watch your record build as you try to outsmart the machine. Rendered on a dark violet-and-cyan theme with glowing X and O marks, it is a compact, endlessly replayable strategy game that rewards careful thinking over luck.

Controls

Click or tap a square to place your X. Get three in a row. Tab to a square, Enter or Space to play.

How to play

You play X and the AI plays O, taking turns filling the 3x3 grid.

  • Be the first to line up three of your marks in a row, column, or diagonal before the AI does, or force a draw.
  • Then hit Play Again for a rematch.

Read the full Tic-Tac-Toe rules and strategy →

Details

Category
Board
Platform
Web browser
Price
Free

More games like this

Install GameDavinci

You never have to — every game plays in the browser, free, with no download. Installing just adds a home-screen icon, full screen, and offline play for games you've already opened.