
I added real-time online multiplayer to my Connect 4 browser game using Firebase
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 R
Continue reading on Dev.to Webdev
Opens in a new tab


