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

Automatically set results when status is given #178

Closed Drarig29 closed 1 year ago

Drarig29 commented 1 year ago

If somebody does:

await manager.update.match({
  id: 1,
  status: Status.Completed,
  opponent1: {
    score: 12,
  },
  opponent2: {
    score: 14,
  },
});

Then the winner will be determined automatically, based on the scores. (only if the no result property is given)

Drarig29 commented 1 year ago

Closed by d7f7b0f