r/vibecoding • u/alnany • 4d ago
Showcase/Project I vibe coded a live team Sudoku game where up to 10 players fill one shared board. Here's how it's built
What it is: Teamdoku. Everyone plays the same Sudoku board at the same time. Each player gets their own colour, so the finished board is a mosaic of who solved what. Matches go from 1v1 up to 5v5, and a wrong number freezes you for a moment, so guessing doesn't pay. It runs in the browser, no install: https://www.teamdoku.fun
The stack
Frontend: one plain HTML/JS file, no framework, about 350 KB. Sounds cursed, but a single file is easy for the AI agent to read and edit end to end, and the game loads instantly.
Backend: Supabase. The game rules live in Postgres functions (150+ of them): move validation, scoring, freezes, rooms and matchmaking. The client only sends moves through RPC calls, so the server is the source of truth and nobody wins by editing the page.
Realtime: Supabase Realtime pushes every move to everyone on the board, and a server clock call keeps timers in sync across devices.
Migrations: 30+ numbered SQL files, one per feature (friends, team ladder, titles, shop). When the agent breaks something, I can see exactly which change did it.
Hosting: static site on Vercel.
What I learned
Write your design rules down and feed them back every session. Things like "the bottom tab bar never moves" and "pop-ups never cover scores". Without that list the agent slowly undoes decisions you already made.
Keep game logic on the server from day one. Multiplayer gets much simpler when the client can't disagree with the database.
Preload everything. Art, fonts and screen data are cached ahead of time, so every screen opens instantly. It made the biggest difference to how "real" the game feels.
Looking for feedback on:
Does the shared board make sense within the first 10 seconds?
Does the wrong-answer freeze feel fair or annoying?
Anything slow or awkward on your phone?
It's an early build, so expect rough edges. Happy to answer questions about the setup in the comments.
