Drarig29 / brackets-manager.js

A simple library to manage tournament brackets (round-robin, single elimination, double elimination).
https://drarig29.github.io/brackets-docs
MIT License
245 stars 38 forks source link

Support seeding confirmation #131

Closed Drarig29 closed 2 years ago

Drarig29 commented 2 years ago

As said here: https://github.com/Drarig29/brackets-manager.js/issues/59#issuecomment-1069672980

You can either use manager.create() for BYEs or manager.update.seeding() for TBDs.

But, as said here: https://github.com/Drarig29/brackets-manager.js/discussions/130#discussioncomment-2494284

Once we need to start the tournament (because the registration phase is ended or whatever), TBDs are tricky because they are not actual BYEs so they are not propagated and do not make opponents automatically win.

So instead of letting the library user recreate the stage with the final seeding as a workaround, we could have a new function to the API:

Drarig29 commented 2 years ago

manager.update.confirmSeeding() was added in: https://github.com/Drarig29/brackets-manager.js/releases/tag/v1.4.2