Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double Elimination errors with specific winner? #187

Open
swordfischer opened this issue Jan 10, 2022 · 0 comments
Open

Double Elimination errors with specific winner? #187

swordfischer opened this issue Jan 10, 2022 · 0 comments

Comments

@swordfischer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant