DB layer:
- Account.RankScore (int, default 1000) — ELO rank for matchmaking
- GameEnums: MatchmakingStatus, GameSessionStatus, GamePhase
- Entities: MatchmakingEntry, GameSession, GameActionLog
- GameDbContext (schema: game) + AddGameDatabase() registration
- Migrations: AddRankScore (Identity), InitialCreate (Game)
SOR.Matchmaking:
- MatchmakerService (BackgroundService) — 5s poll, ELO ±100→±500 range
- Handlers: matchmaking.join, matchmaking.leave, matchmaking.status
- Pushes MatchFoundPush to both players via IClientPush on match
SOR.Game:
- GameState / PlayerState / CardInstance / FieldCard JSONB model
- GameEngine (pure static): Init, Draw, PlayCard, Attack, EndTurn, Concede
- ELO delta (K=32) computed and applied on game end
- Handlers: game.ready, game.get_state, game.draw, game.play_card,
game.attack, game.end_turn, game.concede
- State filtered per-viewer (opponent hand/deck hidden)
- GameOverPush with rank deltas to both players
Admin pages:
- /game/matchmaking — live queue stats, active entries, recent activity
- /game/sessions — session stats, filterable by status/account
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>
24 lines
1.2 KiB
XML
24 lines
1.2 KiB
XML
<Solution>
|
|
<Folder Name="/src/">
|
|
<Project Path="src/SOR.Admin/SOR.Admin.csproj" />
|
|
<Project Path="src/SOR.Auth/SOR.Auth.csproj" />
|
|
<Project Path="src/SOR.Bazaar/SOR.Bazaar.csproj" />
|
|
<Project Path="src/SOR.Cdn/SOR.Cdn.csproj" />
|
|
<Project Path="src/SOR.Chat/SOR.Chat.csproj" />
|
|
<Project Path="src/SOR.Collection/SOR.Collection.csproj" />
|
|
<Project Path="src/SOR.Content/SOR.Content.csproj" />
|
|
<Project Path="src/SOR.Database/SOR.Database.csproj" />
|
|
<Project Path="src/SOR.Game/SOR.Game.csproj" />
|
|
<Project Path="src/SOR.Gateway/SOR.Gateway.csproj" />
|
|
<Project Path="src/SOR.Host/SOR.Host.csproj" />
|
|
<Project Path="src/SOR.Matchmaking/SOR.Matchmaking.csproj" />
|
|
<Project Path="src/SOR.Networking.Abstractions/SOR.Networking.Abstractions.csproj" />
|
|
<Project Path="src/SOR.Networking.Nats/SOR.Networking.Nats.csproj" />
|
|
<Project Path="src/SOR.Networking.Redis/SOR.Networking.Redis.csproj" />
|
|
<Project Path="src/SOR.Networking.WebSocket/SOR.Networking.WebSocket.csproj" />
|
|
<Project Path="src/SOR.Shared.Proto/SOR.Shared.Proto.csproj" />
|
|
<Project Path="src/SOR.Shared/SOR.Shared.csproj" />
|
|
<Project Path="src/SOR.Versioning/SOR.Versioning.csproj" />
|
|
</Folder>
|
|
</Solution>
|