Offline strategy · Android & browser

Play tic tac toe online — or take it offline on Android

A free tic tac toe game with a computer opponent that actually thinks. Play it in this browser right now, or install the Android app and keep playing with no connection at all — two players on one device, three difficulty levels, and no ads anywhere.

  • No registration for browser play
  • No ads
  • Android app works offline
Tic Tac Toe home screen showing offline Two Players and Play vs AI modes.

The browser game

The same game, playable right here

The browser version runs the exact rules and the exact opponent code as the Android app — not a simplified copy. Pick your difficulty, or switch to two players and share the screen with someone next to you.

  • Easy Plays at random. A gentle warm-up.
  • Medium Takes its wins, blocks yours.
  • Hard Perfect play. A draw is the best you can get.
Play tic tac toe online free

No download, no sign-up, works on phones and desktops.

Features

What is actually in the game

Everything below is in the shipping Android app. There are no achievements, no lifetime statistics and no online play — the game does a small number of things and does them properly.

Three genuinely different AI levels

Easy plays at random, Medium blocks your threats and takes its own wins, and Hard searches the whole game tree. They are three separate algorithms, not one opponent with a label changed.

A Tic Tac Toe game in progress against Hard AI on the neon board.
Hard AI match. Hard mode searching for its reply. It evaluates the entire game tree before moving, which means it never makes a mistake you can punish.

Two players on one device

Pass the phone back and forth. Turns alternate between X and O automatically, and the status line always shows whose move it is.

A local two-player Tic Tac Toe match in progress on one Android device.
Two players. Pass-and-play on a single device. The status line tracks whose turn it is, and the same scoreboard counts results for both players.

Round-by-round score tracking

A scoreboard above the grid counts X wins, O wins and draws as you play. Restart a round to keep the running score, or reset it to zero whenever you want a clean slate.

Tic Tac Toe scoreboard showing tracked X wins, O wins, and draws between rounds.
Score tracking. Restarting a round clears the grid but keeps the running score, so you can play a long series without losing count.
  • Play against the computer

    A built-in opponent plays every round with you — no second player and no internet connection needed. You are always X and move first.

  • Clear wins you can actually see

    The three winning squares light up and a line is drawn through them, so the result is never in doubt. A short dialog confirms the outcome and offers a rematch.

  • Sound and vibration you control

    A tap sound on every move and a chime on a win, plus haptic feedback in your hand. Both are separate switches in Settings, and the app remembers how you left them.

  • Dark and light themes

    Pick whichever is easier on your eyes. The app opens in dark by default and keeps your choice between sessions.

  • Works completely offline

    Every match runs on your device. The app makes no network requests at all, so it works on a plane, on the underground, or with mobile data switched off.

  • No ads, no purchases, no account

    No banners, no interstitials, no in-app purchases, no sign-up. Nothing interrupts a round and nothing is gated.

  • Built for phones and tablets

    The layout adapts to the screen. On tablets the two game modes sit side by side and the board scales up to fill the extra space.

Game modes

Two ways to play

Tic Tac Toe has two modes, and both work without a connection. Pick a solo match against the computer, or hand the device back and forth with someone else.

Play vs AI

Challenge Easy, Medium, or Hard

You play as X and move first. The computer answers as O after a short pause, and you can change its difficulty at any point — even halfway through a round.

  • Three separate opponent algorithms
  • Switch difficulty mid-round
  • Hard cannot be beaten, only drawn
How the computer opponent plays

Two Players

Offline on the same device

Two people share one screen and take turns. X always starts, then the turn passes automatically, and one scoreboard keeps count for both of you.

  • No second device needed
  • Automatic turn order
  • Shared score for wins and draws
About two-player tic tac toe

Screenshots

Eight real captures from the Android app, straight from the running game. Scroll or swipe through them, or use the arrow keys.

Tic Tac Toe home screen showing offline Two Players and Play vs AI modes.
Home screen. Both game modes are on the opening screen — Two Players for local play, Play vs AI for a solo match. The footer states the app runs with no ads and no connection.
Tic Tac Toe AI match screen with Easy, Medium, and Hard difficulty choices.
Difficulty picker. Easy, Medium and Hard sit directly above the board, so you can change the opponent at any point — even in the middle of a round.
A Tic Tac Toe game in progress against Hard AI on the neon board.
Hard AI match. Hard mode searching for its reply. It evaluates the entire game tree before moving, which means it never makes a mistake you can punish.
A local two-player Tic Tac Toe match in progress on one Android device.
Two players. Pass-and-play on a single device. The status line tracks whose turn it is, and the same scoreboard counts results for both players.
Tic Tac Toe win celebration showing an X victory and highlighted winning row.
Winning a round. The winning row is highlighted and struck through, the score ticks up to 1, and a dialog offers an immediate rematch.
Tic Tac Toe scoreboard showing tracked X wins, O wins, and draws between rounds.
Score tracking. Restarting a round clears the grid but keeps the running score, so you can play a long series without losing count.
Tic Tac Toe settings for sound, haptics, and dark theme.
Settings. Sound and haptics are independent switches. Turn off one, both, or neither — the app remembers your choice next time it opens.
Tic Tac Toe settings showing the light theme option.
Light theme. The same screen in light theme. Every screen in the app follows the theme you pick, and dark is the default.

The Android app

Why put it on your phone?

The browser game and the app run the same rules and the same opponent. What changes is everything around the board.

  • Genuinely works with no connection

    Not "works once it has loaded" — the app makes no network requests at all. On a plane, on the underground, or with data switched off, it plays exactly the same. The browser version still needs the page to load first.

  • You feel every move

    A light tap as your mark lands, a different buzz when you win, and an error nudge if you tap a square that is taken. Browsers can only do a fraction of this, and not at all on iPhone.

  • One tap from your home screen

    No tab to find, no address to type, nothing to load. It opens straight into the board, full screen, with no browser bar taking up the top of your phone.

  • Nothing collected, nothing shown

    No ads between rounds, no account, no sign-in, and no data collected — a claim you can check yourself in the Data safety section of the Play listing.

  • Free
  • No ads
  • No account
  • Rated for 3+

Android phones and tablets · package com.shahbaz.tictactoe · published by Syed Shahbaz Hussain

Tic Tac Toe home screen showing offline Two Players and Play vs AI modes.

How to play

How to play tic tac toe

Tic tac toe is a two-player game on a 3×3 grid. Players take turns marking empty squares, one using X and the other using O, with X always going first. The first player to line up three of their own marks in a row, column or diagonal wins. If all nine squares fill with no such line, the game is a draw.

The rules, step by step

  1. Set up the grid. Tic tac toe is played on a 3×3 grid of nine empty squares. One player uses X, the other uses O.
  2. X goes first. The player using X places a mark in any empty square. In Tic Tac Toe, X always starts, and against the computer you are X.
  3. Take turns. Players alternate, placing one mark per turn in any square that is still empty. You cannot move a mark once it is placed, and you cannot overwrite your opponent.
  4. Make a line of three. The first player to get three of their own marks in a straight line — a row, a column, or either diagonal — wins immediately.
  5. Or fill the board. If all nine squares are filled and no one has a line of three, the round is a draw. Nobody scores.

How you win

There are exactly eight winning lines on a 3×3 grid: three rows, three columns and two diagonals. Because the centre square belongs to four of those eight lines, and each corner belongs to three, the centre is the strongest opening move and the corners come next. The four edge squares belong to only two lines each.

Winning against someone paying attention takes a fork: a move that creates two separate threats at once. Your opponent can only block one of them, so the other wins on your next turn. Blocking a single threat is easy; being forced to block two is not.

Why so many games end in a draw

Tic tac toe is a solved game. If both players play perfectly from the first move, the result is always a draw — which is why the Hard opponent in Tic Tac Toe can never be beaten, only held. Wins happen when somebody misses a threat or hands over a fork.

Why play it

Why play Tic Tac Toe

Tic tac toe is a simple game, so what matters is everything around it: whether it works when you need it, whether it interrupts you, and whether the opponent is worth playing.

  • It keeps working when your connection does not

    The Android app makes no network requests. Not for the opponent, not for settings, not for analytics. That is why it plays identically on a plane, in a tunnel, or with mobile data switched off.

  • Nothing interrupts a round

    No banner across the board, no full-screen ad between games, no "watch a video to continue". Nothing could appear later either: the build contains no advertising library to switch on.

  • The hard opponent is genuinely hard

    Hard mode runs a complete minimax search of the game tree before every move. It is not a random opponent with a difficulty label — it is provably perfect, and the best result available against it is a draw.

  • It asks you for nothing

    No account, no email address, no profile, no permissions beyond what Android grants by default. The app even blocks the media-playback background permission it would otherwise inherit.

  • The browser game is the same game

    This site runs the same rule engine and the same opponent code as the app, not a lighter re-write. Whatever you learn beating Medium here applies exactly on your phone.

  • Your settings stay put

    Sound, haptics and your theme choice are remembered between sessions, so the game opens the way you left it rather than resetting to defaults every time.

FAQ

Frequently asked questions

Short answers about the game, the browser version and the Android app.

Can I play tic tac toe online for free?

Yes. The tic tac toe game on this site is completely free to play in your browser. You will not be asked to sign up, hand over an email address, download anything or pay. Open the play page and the board is ready immediately — nothing is locked behind a form or an advertisement.

Can I play tic tac toe against the computer?

Yes. Choose "Play vs AI" and you play as X against the computer as O. Three difficulty levels are available: Easy, Medium and Hard. You can switch between them at any time, including in the middle of a round, and the board resets only when you ask it to.

Is there a two-player mode?

Yes. "Two Players" mode lets two people play on the same screen, taking turns on one device. X always goes first, then turns alternate automatically. The scoreboard counts wins for both players and draws, so you can play a long series and keep track without writing anything down.

Does the Android game work offline?

Yes, completely. The Tic Tac Toe Android app makes no network requests at all — the opponent runs on your device, so there is nothing to download mid-game. It works in aeroplane mode, underground, or anywhere without a signal. The app has no ads and collects no data.

How do you win at tic tac toe?

You win by placing three of your marks in a straight line — across a row, down a column, or along either diagonal. There are eight possible winning lines on a 3×3 grid. The strongest opening is the centre square, because it belongs to four of those eight lines.

Is Tic Tac Toe available on Android?

Yes. Tic Tac Toe is an Android game published under the package name com.shahbaz.tictactoe. It runs on phones and tablets in portrait orientation. No iOS release exists at the moment. The browser version on this site runs the same rules and the same AI code, so nothing is lost if you play here first.

Ready for a round?

Start in the browser — nothing to install and nothing to sign up for. If you like it, the Android app plays the same game with no connection at all.

Free · no ads · no in-app purchases · Android package com.shahbaz.tictactoe