Ajoute l Elo et les statistiques de parties

This commit is contained in:
2026-04-16 00:17:52 +02:00
parent db233e7110
commit 407e5e8ed5
13 changed files with 1914 additions and 11 deletions

View File

@@ -45,11 +45,20 @@ public sealed class MatchConfig
public sealed class MatchState
{
[JsonPropertyName("schemaVersion")]
public int SchemaVersion { get; set; } = 3;
public int SchemaVersion { get; set; } = 4;
[JsonPropertyName("matchId")]
public string MatchId { get; set; } = Guid.NewGuid().ToString("N");
[JsonPropertyName("collaborationSessionId")]
public string? CollaborationSessionId { get; set; }
[JsonPropertyName("whiteSubject")]
public string? WhiteSubject { get; set; }
[JsonPropertyName("blackSubject")]
public string? BlackSubject { get; set; }
[JsonPropertyName("config")]
public MatchConfig Config { get; set; } = new();
@@ -95,6 +104,9 @@ public sealed class MatchState
[JsonPropertyName("result")]
public string? Result { get; set; }
[JsonPropertyName("resultRecordedUtc")]
public DateTime? ResultRecordedUtc { get; set; }
[JsonPropertyName("cube")]
public CubeState Cube { get; set; } = new();