Home › App makers › Tic-tac-toe game maker

Tic-tac-toe game maker

Make a tic-tac-toe game with a computer opponent, a two-player mode and bigger boards. The AI agent builds it, you play in the emulator preview and get the APK.

Build this tic-tac-toe game free ›

Free to start · sign in with Google · watch it run in the emulator preview · download the APK

Updated September 26, 2026 · step-by-step guide · all app makers

Tic-tac-toe is the first strategy game most people learn, and a great first game to build: nine squares, two players, one rule to win. Describe your version — who plays, how smart the computer is, what the pieces look like — and the AI agent builds it as a phone game. You play it in the emulator preview and download it as an Android APK. The idea above has three computer levels and a two-player mode; change the look and the rules before you build.

What your tic-tac-toe game will have

The agent builds the whole game from the idea above, not just a grid:

  • Home screen — "Play vs computer" with Easy, Medium and Hard, and "Two players" on one phone.
  • The board — three by three big squares with clear X and O marks and a banner showing whose turn it is.
  • A computer that thinks — Easy plays at random, Medium grabs a win and blocks yours, Hard looks ahead through every move and never loses.
  • Win and draw detection — all eight lines are checked after each move; a line is drawn through the winning three, and a full board is called a draw.
  • Scoreboard — wins for X and O and the number of draws, saved on the phone, with a reset button.
  • Rematch — one tap to play again, with the loser going first so games stay fair.

Features you can ask for

  • Themed pieces: cats against dogs, suns against moons, the players' initials.
  • Bigger boards where you need four in a row.
  • A best-of-five match with a trophy for the winner.
  • A timer per move for fast rounds.
  • A coin flip to decide who starts.
  • A hint button that shows the best move, handy for teaching strategy.
  • Win animations, sounds and a mute switch.

Ideas to make it yours

Build a tic-tac-toe game for kids with animal pieces: cats against dogs, big squares, a friendly computer that sometimes misses a win, cheerful sounds and a sticker for every game won.
Build a nine-board tic-tac-toe game: nine small boards inside one big board, the square you play decides which small board your opponent must play in next, and winning three small boards in a row wins the game. Two players on one phone, with the allowed board glowing.
Build a speed tic-tac-toe game: each player has 3 seconds per move or the turn is skipped, best of 7 rounds, the loser of each round starts the next, and a dark neon look.

For other board and puzzle games that come out well, read how to build a simple game without coding. If you want two phones to play each other over the internet, the multiplayer quiz game guide explains rooms, codes and the hosted backend; the same pattern works for a board game.

Get it on your phone

  1. Press Build this tic-tac-toe game and sign in with Google.
  2. Play against every level in the emulator preview. Try to beat Hard — you should only ever draw.
  3. Ask for changes by chatting: "make Medium a bit easier", "use hearts and stars", "bigger win animation".
  4. Press Download APK and install it on your Android phone to play with a friend.
  5. For Google Play, build the signed APK and AAB from the same menu; the APK builder page explains the steps.

Why tic-tac-toe makes a great first project

The rules fit in one sentence, so everything else can be about making the game good. It is also a clear way to learn how games think. Ask the agent to explain how the Hard computer decides: it tries every possible move, imagines the best reply, and picks the move that can never lose. Seeing that idea work on nine squares is a gentle start to how computers play bigger games. Teachers use it for coding lessons, and students present it in class or at a hackathon; the school project guide covers how to demo it and explain how it was built. Once it works, give it a twist — a bigger board, a timer or silly pieces — and it becomes your game rather than everyone's. Then try another classic from the game maker list.

Frequently asked

Can the computer really never lose?

Yes. The board is small enough for the computer to look ahead through every possible move, so a perfect player always wins or draws. That is why an Easy level that sometimes misses a move matters, especially for kids.

Can I make a bigger board?

Yes. A 4x4 or 5x5 board where you need four in a row is a common choice, and a nine-boards-in-one variant is popular with older players. On bigger boards the computer plays well but not perfectly, which keeps it beatable.

Can two friends play on different phones?

Taking turns on one phone is built in. Playing between two phones over the internet needs the hosted backend with an online database that comes with the project, which is a bigger step; the multiplayer quiz guide shows the same room-code pattern.

How do I share the game?

Press Download APK in the builder and send the file. Friends open it on their Android phones and allow installs from their browser or messaging app once.

Make your tic-tac-toe game now — free to start

Describe it, sign in, and the agent builds it while you watch. Change anything by asking.

Build this tic-tac-toe game ›