CodebreakerApp / Codebreaker.Backend

MIT License
2 stars 0 forks source link

With reports, game shown up as game won which is not the case #269

Open christiannagel opened 1 month ago

christiannagel commented 1 month ago
image

This game from Oct, 4th, 2024 shows as won with the Blazor UI. State should be completed, but not won. This can be an issue with the backend service or the Blazor client.

State should be ended, but not won. If this is the case with the game state, this might be a Blazor client issue instead.

christiannagel commented 1 month ago

From the database - it's stored correctly - IsVictory is false.

"Id": "f4788155-07b0-476c-b914-a8adc21969b2",
    "PartitionKey": "f4788155-07b0-476c-b914-a8adc21969b2",
    "Codes": [
        "Yellow",
        "Yellow",
        "Orange",
        "Yellow"
    ],
    "Discriminator": "GameV3",
    "Duration": "00:03:53.0968891",
    "EndTime": "2024-10-04T09:27:07.1189137Z",
    "FieldValues": "{\"colors\":[\"Red\",\"Green\",\"Blue\",\"Yellow\",\"Purple\",\"Orange\"]}",
    "GameType": "Game6x4",
    "IsVictory": false,
    "LastMoveNumber": 12,
    "MaxMoves": 12,
    "NumberCodes": 4,
christiannagel commented 1 month ago

This game is correctly shown as lost:

image
{
    "Id": "264350bc-28eb-4f04-96f1-ebbb54f901dd",
    "PartitionKey": "264350bc-28eb-4f04-96f1-ebbb54f901dd",
    "Codes": [
        "Blue",
        "Orange",
        "Purple",
        "Green"
    ],
    "Discriminator": "GameV3",
    "Duration": "00:00:32.6415168",
    "EndTime": "2024-10-05T10:51:04.9154Z",
    "FieldValues": "{\"colors\":[\"Red\",\"Green\",\"Blue\",\"Yellow\",\"Purple\",\"Orange\"]}",
    "GameType": "Game6x4",
    "IsVictory": false,
    "LastMoveNumber": 12,
    "MaxMoves": 12,
    "NumberCodes": 4,