Refine ranked flow and add matchmaking design draft

This commit is contained in:
dingo
2026-02-23 04:28:48 +00:00
parent 8e2a83e21a
commit d6a0b393d5
@@ -18,6 +18,7 @@
## Client ## Client
- Load ranked eligibility and current competitive profile. - Load ranked eligibility and current competitive profile.
- Prompt for deck selection + starting ArchSpirit before queueing.
- Require valid deck + archspirit selection before enabling `Join Queue`. - Require valid deck + archspirit selection before enabling `Join Queue`.
- Submit ranked queue request and transition to matchmaking state. - Submit ranked queue request and transition to matchmaking state.
- On match found, lock queue interactions and transition to gameplay scene with ranked ruleset payload. - On match found, lock queue interactions and transition to gameplay scene with ranked ruleset payload.
@@ -49,3 +50,28 @@
### Server -> Client (`RankedMatchFound`) ### Server -> Client (`RankedMatchFound`)
- `requestId`, `queueTicketId`, `matchId`, `rulesetId`, `opponentSummary`, `acceptDeadlineUtc`, `gameServerEndpoint`, `matchToken` - `requestId`, `queueTicketId`, `matchId`, `rulesetId`, `opponentSummary`, `acceptDeadlineUtc`, `gameServerEndpoint`, `matchToken`
## Matchmaking Handling (Design Draft)
### Baseline Recommendation
- Use skill rating (MMR) + rank tier as primary matching factors.
- Use expanding search windows over time:
- strict match window at queue start
- gradually widen MMR/rank constraints each interval
- Prioritize latency region compatibility.
- Enforce anti-rematch cooldown (avoid immediate repeated same-opponent pairings when possible).
### Queue Lifecycle
1. Player joins queue with `deckId` + `archspiritId` locked.
2. Server issues `queueTicketId` and tracks search window state.
3. On candidate match, server validates both players still eligible/connected.
4. Server emits `RankedMatchFound` with accept deadline.
5. If accepted (or auto-accept policy), allocate match server and transition to gameplay.
6. If declined/timeout/disconnect, apply policy (requeue/penalty) and notify client.
### Open Policy Decisions
1. Accept flow: explicit accept button vs auto-accept on match found.
2. Timeout behavior and dodge penalties.
3. How aggressive search-window expansion should be by queue time.
4. Party/duo rules (if any) for ranked.
5. Placement match handling for new season/new player.