WOuldn't this not take into account 12 seeds winning? Since you do team1.seed > team2.seed before checking if team2.seed is 12.
Also, this would mean 12 seeds would go all the way anyway, you're not limiting it to the first round only.
Yeah, trg2 would need to put all the edge case rules towards the beginning. That, or just put the basic rules at the beginning and have separate conditionals at the end to handle the edge cases.
Good call - thanks for the CR! :)
This is exactly the reason we built this - it's much harder to keep all these various rules in your head while you're making your bracket, but simple to execute in code. Thanks for the awesome example!
function (game, team1, team2) {