Real-Time Multiplayer Tic Tac Toe with WebSockets

🚀 Built a Real-Time Multiplayer Tic Tac Toe I recently worked on a small full-stack project — a multiplayer Tic Tac Toe game — mainly to explore how real-time systems work. Instead of building it as a simple UI game, I focused on syncing game state between players using WebSockets. The UI is built with a neo-brutalism-inspired design, which kept the interface simple, bold, and readable. 🔧 Features: • Real-time multiplayer (no polling) • Room-based system (create/join with IDs) • Dynamic board sizes (3×3 up to 8×8) • Server-side validation for moves and turns • Automatic win/draw detection ⚙️ Tech Stack: Frontend: React + TypeScript + Vite Backend: Node.js + WebSocket (ws) Styling: Tailwind CSS 📚 What I learned: • How WebSocket connections work in real-time apps • Managing shared state across multiple clients • Designing a simple room-based system • Handling edge cases like invalid moves and sync issues It’s a simple project, but it helped me understand the basics of building real-time applications beyond standard request-response setups. 🔗 Try it out: https://lnkd.in/gsWV4Pwz (You’ll need two players — or just open it in two tabs) 🔗 GitHub: https://lnkd.in/g5ezJib7 Would appreciate any feedback. #WebDevelopment #React #NodeJS #WebSockets #FullStack #LearningInPublic #TailwindCSS #TypeScript #Neobrutalism

To view or add a comment, sign in

Explore content categories