1. Create a free Firebase project at console.firebase.google.com
2. Enable Realtime Database
3. Paste your Firebase config JSON below
4. Or skip โ game works offline without it
or sign in with Google
Google login syncs your profile across rooms
๐ก How to Play Online with Friends
1๏ธโฃ
You (Host): Select "Create Room" โ Click Start Game โ Share the Room Code with your friend via WhatsApp, SMS, or any messenger.
2๏ธโฃ
Friend: Opens this same game link โ Selects "Join Room" โ Types your Room Code โ Clicks Start Game.
3๏ธโฃ
Firebase needed for real sync: Paste your Firebase config below (free at firebase.google.com) โ or play without it on the same device.
๐ก Quick tip: Both players need to open this HTML file in their browser. Host it free on GitHub Pages or share via a link using tiiny.host for instant sharing.
Tic Tac Toe
X
Player X
0
Draws
0
VS
O
Player O
0
Player X's turn
Room Code
------
Share this code with your friend
๐ Move History
No moves yet
๐ Online Controls
You are playing as X
Moves sync automatically via Firebase. If opponent disconnects, wait or start a new room.