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

the order of matches in a two way round_robin is wrong #196

Open Vadilonga opened 8 months ago

Vadilonga commented 8 months ago

Hi, I noticed that the order of the games is backwards. If A and B play each other in the first match then they will find themselves playing each other in the last match while normally they should play each other on the first day of the second round.

Drarig29 commented 8 months ago

Hi, can you show a screenshot and JSON data?

Vadilonga commented 8 months ago

Ofc, the json is pretty huge at the moment, I can share my UI: image

As you can see "los ratones" and "che razzo" they compete on the 1st and last day.

If you were to encounter the same problem I would be happy to contribute to fixing this issue.

Drarig29 commented 7 months ago

Can you share the JSON? It doesn't matter if it's huge, you can send it as an attached file.

I also need the manager code you use to generate this round-robin, like:

const manager = new BracketsManager(...)
await manager.create({
  // all the settings you pass
})

Especially, with any custom ordering if you have some, and the seeding you are passing.