Add Decagonal board shape, team reassignment, and multiplayer considerations
- BoardShapeGenerator: add MakeDecagonal() for 7-10 players (10-armed radial, 11x11 arena, 21x21 total); AutoShape now routes 7-10 to Decagonal - CustomLobby: add TeamAssignmentsJson (seat -> team override map) - GameMessages: add ReassignTeamRequest/Response, LobbyTeamAssignmentChangedPush, SeatTeams field on JoinCustomLobbyResponse - GameReassignTeamHandler: new game.custom.reassign_team handler (host-only); pushes team_reassigned to all participants including additional players - EF migration: AddTeamAssignmentsToLobby (applied to pg-forge-01) - Client CustomLobby.gd: seat_teams state, reassign_team() action, push handler - lobby_room_screen.gd: _rebuild_team_controls() renders host-only [<] Tx [>] cycle buttons per seat in team modes; _team_label() reads seat_teams overrides - OVERALL.md: add Considerations for Later (fog of war, asymmetric teams, ranked ELO) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
+21
@@ -116,3 +116,24 @@
|
||||
- [ ] Delta identity decoupling: replace client-visible `accountId` usage in game wire payloads with session-scoped `playerRef` identifiers.
|
||||
- [ ] Server identity map: maintain authoritative `sessionId + playerRef -> accountId` mapping with strict invariants on join/reconnect/resume.
|
||||
- [ ] Logging/telemetry split: keep internal accountId linkage in server logs only; expose `playerRef` (and display name) in client-visible/debug payloads.
|
||||
|
||||
---
|
||||
|
||||
## Considerations for Later
|
||||
|
||||
These features are intentionally deferred — they require significant design work or depend on
|
||||
other foundational systems not yet in place.
|
||||
|
||||
- **Fog of War**: Restrict each player's board visibility to tiles/units within a defined sight
|
||||
range. Requires a server-side visibility model (per-player tile sets), partial state
|
||||
serialisation in game messages, and client-side fog overlay rendering. Non-trivial for
|
||||
multiplayer without leaking hidden state.
|
||||
|
||||
- **Asymmetric team sizes**: Allow lobbies where teams have different player counts (e.g. 3v1,
|
||||
2v1v1). Currently `teamCount` divides seats evenly. Requires a seat-to-team mapping override,
|
||||
balancing rules, matchmaking weight adjustments, and UI to expose the configuration.
|
||||
|
||||
- **Ranked multiplayer ELO**: Extend the ranked system to support multi-player ELO/MMR — rating
|
||||
deltas when 3+ players participate in one match, handling partial concessions, and per-format
|
||||
rating tracks (2v2, FFA, etc.). Requires consensus on the scoring algorithm and
|
||||
anti-manipulation rules before implementation.
|
||||
|
||||
Reference in New Issue
Block a user