feat(lobby): cap simultaneous quick games at 10 #76
Reference in New Issue
Block a user
Delete Branch "feature/quick-game-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Caps a player at 10 active quick games (auto-match + AI; friend games created by invitation are not counted).
POST /lobby/enqueueandPOST /invitations— with 409game_limit_reached; accepting an invitation is never gated, so friend games are capped from the other end.at_game_limitflag ongames.list(no per-event payload — a turn change does not move the count, and the lobby already re-fetchesgames.liston entry and every game event).game.Service.CountActiveQuickGames):active/openquick seats, excluding invitation-linked friend games; hidden games still occupy a slot (dedicated count).No schema change (only a trailing FB field, no migration) → no contour DB wipe.
Tests: backend integration (count rule + HTTP gate 409 + accept bypass), server unit (error map), gateway transcode round-trip, UI codec + lobbycache unit, e2e (
gamelimit.spec.ts). Local full suite green (Go unit+integration, UI check/unit/build/bundle/e2e Chromium+WebKit).Docs: PRERELEASE (GL), FUNCTIONAL (+
_ru), ARCHITECTURE §8, UI_DESIGN, backend/README.