XOX Online: tic-tac-toe with a friend
Play XOX against a friend on another device. Share a link or QR code, and the game runs directly between your two browsers, with no account and no game server.
Create a game or join one to start.
X always belongs to whoever created the game; the starting player alternates every round. Every move is checked by the host's browser.
How to play online
- Create a game. You get a link and a QR code. Send the link to your friend (any messenger), or let them scan the code.
- Your friend opens it. Their screen shows a short reply code; they send it back to you.
- Paste the reply. The two browsers connect directly and the first round starts. Take turns clicking empty squares; three in a row wins.
- Rematch. When a round ends, both players press Rematch. Scores are kept while you stay connected.
How it works
XOX Online uses the same peer-to-peer engine as DevChat: WebRTC data channels, encrypted in transit, with the invitation and reply exchanged by you instead of a server. The browser that created the game is the referee: the other player's moves are sent to it, checked (is it your turn, is the square empty), and the official board is sent back to both. A move made out of turn or on a taken square is refused.
Good to know
- Both players need the page open. If the other player disconnects, the game pauses and continues if they come back from the same tab; otherwise choose Play someone else.
- Some networks block direct connections (often mobile data, offices and hotels). If connecting fails, try both devices on the same Wi-Fi.
- Privacy: your browser asks a public STUN server (Google's) for your public IP address, which goes into the invitation so your friend's browser can reach you. Moves go only between the two browsers. Your name is saved in this browser.
- Want to play the computer or on one screen? Use the original XOX.