Hey everyone! đ
I just shipped a big update to my Connect 4 game on 7x.games â online multiplayer is now live!
What's new:
đ Online Multiplayer â play Connect 4 with anyone in the world in real-time
đ Private Rooms â create a room and share a unique invite link with a friend
⥠Quick Match â get auto-paired with a random opponent
đ¤ Social Sharing â share invite links via WhatsApp, Telegram, Twitter/X, Facebook, or native share
đ URL Invites â friends click a ?room=XXXXXX link and they're straight into the game
đĄ Real-time Sync â moves sync instantly between both players via Firebase Realtime Database
đą Works on all devices â mobile, tablet, desktop â no app download needed
What was already there:
đ¤ 3 AI difficulty levels (Easy = random, Medium = minimax depth 4, Hard = minimax depth 7 with alpha-beta pruning)
đĨ Local Pass & Play mode
đ¨ 4 board themes (Classic, Obsidian, Forest, Crimson)
đ Sound effects & disc drop animations
âŠī¸ Undo support (local only)
Tech stack:
Next.js (React, App Router)
Firebase Realtime Database for room management & move sync
Web Audio API for sound effects
No external game engine â pure React + CSS animations
How multiplayer works:
Player 1 creates a room â Firebase stores room state
Player 1 shares the invite link
Player 2 opens the link â auto-joins the room
Both clients listen to the same Firebase path via onValue
When a player clicks a column, the move is pushed to Firebase
Both clients process the move locally â board state stays in sync
The room creator always plays as Red (goes first), and the joining player is Yellow.
Would love any feedback! Try it out: Click here
đ Changelog / Release Notes
Connect 4 â v2.0 | Online Multiplayer Update
Release Date: March 31, 2026
⨠New Features
Online Multiplayer â Real-time 2-player matches via Firebase
Private Rooms â Create a room and share an invite link
Quick Match â Auto-pair with a random waiting player
Social Sharing â Share invite links via WhatsApp, Telegram, Twitter/X, Facebook
URL Invites â ?room=XXXXXX parameter for instant join
Opponent Disconnect Detection â Shows "Opponent Left" screen with return to lobby
Leave Game â Clean disconnect that marks the room as abandoned
đ§ Improvements
Sidebar ad fixed from aspect-square to fixed h-[250px] for proper tablet sizing
SEO metadata updated for online multiplayer keywords
FAQ expanded from 5 to 9 questions covering online features
New "Online Multiplayer" section in page SEO content
Quick Rules updated with đ Online entry
đĄī¸ Preserved
All existing local play modes (vs Computer + vs Friend)
3 AI difficulty levels (Easy, Medium, Hard)
4 board themes
Undo support (local only)
Sound effects and animations
Top comments (0)