Tic-Tac-Toe

Play vs a minimax computer or pass-and-play with a friend on 3×3–5×5 boards (n in a row wins), pick who opens, change grid size with a confirm reset, and start fresh anytime—built for quick breaks and classrooms in India, the US, the UK, and worldwide.

gamespuzzlefuntic tac toebrowsereducationtwo player

Category: Fun & Creative Tools

Tic-tac-toe

Pick a mode, set who opens, then tap the grid. Larger boards use the same “n in a row” rule on rows, columns, and the two long diagonals.

Game mode

You play against the built-in opponent on this device.

Who moves first

You are X — tap a square to start.

Tool overview

Dynamic Duniya’s Tic-Tac-Toe tool focuses on the grid game only: switch between playing the built-in opponent or sharing one screen with a friend. Pick board sizes from 3×3 up to 5×5 where n marks in a row on a row, column, or main diagonal win. First-move options cover both modes, and changing the grid size asks for confirmation so you do not wipe a match by accident.

Vs computer

Choose whether you or the computer opens. The AI uses minimax with alpha-beta pruning on 3×3 for near-perfect defense, and a depth-limited heuristic search on larger boards so moves stay responsive. After each legal human move the computer replies instantly unless the game has ended.

With friend (hot seat)

Pick Player 1 (X) or Player 2 (O) to open, then pass the phone or tablet between turns. Marks alternate automatically based on the board state, so you get a clean pass-and-play flow without accounts or matchmaking servers.

Phones and tablets

Large tap targets, rounded cells, and responsive spacing keep the board readable on small screens. Use New game whenever you want a fresh start.

Frequently Asked Questions

How strong is the computer on 3×3?

Minimax on the 3×3 board is effectively optimal—expect draws when both sides play well, with punishing lines if you slip.

Does the 5×5 board play like standard tic-tac-toe?

Winning requires five in a row along a full row, full column, or one of the two long diagonals of the square. The AI uses a lighter search on big boards so it stays fast in the browser.

Will my game save if I refresh?

No—state lives in the tab only. Start a new game or revisit the tool after refresh.

Where did Sudoku go?

Sudoku now has its own Dynamic Duniya tool page under Fun & Creative so each game can grow independently.

Tips

Quick guidance for using our tools safely and effectively.

Privacy

Files are processed on the server for conversion only and are not used for training or shared with third parties.

Best results

Use the formats suggested in each tool. Large media files may take longer — keep the tab open until processing finishes.

Need something else?

Browse related tools below or explore other categories from the main Dev Tools hub.

Related tools

More utilities in the same category.

Text-to-ASCII Art Generator

Turn short lines into FIGlet ASCII banners in the browser: Standard, Slant, and Small faces, terminal or paper live preview, 40-character limit for clean width, and one-click copy for READMEs, CLI splash screens, and chat—no file upload.

asciifiglet+3

Word Cloud Generator

Free browser word cloud maker: 100 silhouette shape previews, English & Hindi stopwords, Google Fonts, PDF/DOCX/CSV/TXT import, silhouette vs canvas colors, pan/zoom preview, JSON + shareable links, PNG/JPG/SVG export—runs locally for teams in India, the US, the UK, and worldwide.

wordcloudtext+4

Motivational Quote Generator

Browse curated motivational quotes in Hindi and English—next quote shuffle, one-tap copy, offline-friendly after load. Built for India, US, UK & global users.

quoteshindi+4

Sudoku

Classic 9×9 Sudoku in the browser: easy–expert bands, pencil notes, undo/redo, hints, mistake highlights, timer with pause, local save, digit pad, check and reset—built for commutes and classrooms in India, the US, the UK, and anywhere.

sudokupuzzle+5

Dice Roller

Roll tabletop dice online with familiar notation (2d6, d20, 4d6+3), quick presets, session history, and a copy-ready summary—built for D&D, board games, and classrooms in India, the US, the UK, and anywhere you play.

dicegames+4

Random Joke Generator

PG-friendly one-liners for a quick laugh—shuffle with Next joke, copy a line for chats or slides, handy for classrooms and teams in India, the US, the UK, and anywhere you need a light break.

jokesfun+3