Skip to content

Double Elimination errors with specific winner? #187

@swordfischer

Description

@swordfischer

Hi, I'm experiencing some odd issues with the rendering of the brackets (0.11.1)
I'm hopeful that it's because of user error, and not because of the system itself.

So the first snippet and screenshots shows the unexpected result, specifically a 1,3 score in the final bracket (all rounds where Bo3, except the last which was Bo5)

If I flip it around so the score is 3,1 then it looks as expected (if the other had won)

I have tried removing the styling and changing the Skip Consolation round parameter to no avail.


var minimalData = {
            teams: [
                ["Bent<span class='deck'>UwU Tax the Rich {U}{W}</span>","Jimmi<span class='deck'>Esper Animator {W}{U}{B}</span>"],
                ["Daniel<span class='deck'>Bant Blink (182) {G}{W}{U}</span>","Asbjørn<span class='deck'>Jeskai Grind Time {U}{R}{W}</span>"],
                ["Tobias<span class='deck'>Jeskai Tempo Control {U}{R}{W}</span>","Aske<span class='deck'>Waterlogged Compost {B}{U}{G}</span>"],
                ["Mathias<span class='deck'>Death & Taxes {W}</span>","Mickey<span class='deck'>Urw Combocademy {U}{R}{W}</span>"],
            ],
            results:[                                           // List of brackets (three since this is double elimination)
            [                                       // Winner bracket
              [[2, 1], [2, 0], [2, 0], [1, 2]],     // Round 1
              [[0, 2], [2, 0]],                     // Round 2
              [[1, 2]]                              // Semi Finals
            ],
            [                                       // Loser bracket
              [[0, 2], [0, 2]],                     // Loser Round 1
              [[2, 1], [2, 1]],                     // Loser Round 2
              [[0, 2]],                             // Loser Round 3
              [[0, 2]]                              // Loser Round 4
            ],
            [                                       // Final "bracket"
              [
		[1,3] 
		                                 // First round
                                             // Match to determine 1st and 2nd
              ]
            ]
          ]
        }

  var BracketParameters = {
    skipConsolationRound: true,
    init: minimalData
  }

Incorrect?

image

Expected

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions