GHGetHubApps

Tic-Tac-Toe

Play tic-tac-toe against a friend or the computer, right in your browser.

Your turn (X)

0

You (X)

0

Draws

0

Computer (O)

Play tic-tac-toe against a friend on the same screen, or against a computer opponent that plays a genuinely strategic game rather than moving randomly — meaning a perfect game against it will always end in a draw, not a win.

Simple rules, but the computer opponent is tuned to actually contest the game rather than being a pushover.

Frequently asked questions

Can the computer opponent be beaten?
The computer plays optimally, so with perfect play from both sides every game ends in a draw — you can still win if the computer's opponent (or its difficulty setting) allows for suboptimal play.
Is there a strategy to guarantee a win?
Against a perfect opponent, no strategy guarantees a win — the best achievable outcome is a draw. Against a less careful opponent, taking the centre square first and watching for forks gives the best odds.
Can two people play against each other on the same device?
Yes — the two-player mode lets both players take turns on the same screen without needing a computer opponent.

Related tools