-
Notifications
You must be signed in to change notification settings - Fork 43
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
Both player loss in elimination tournament #214
Comments
Can you give more context? What game is it? How can both of them lose? |
I have a condition that both player must have met before the match start. |
Can you forfeit them instead? |
https://drarig29.github.io/brackets-docs/reference/manager/functions/helpers.setForfeits.html |
No, generally you should not have to use helpers. I'm talking about using the usual You can pass forfeits there: await manager.update.match({
id: YOUR_MATCH_ID,
opponent1: { forfeit: true },
opponent2: { forfeit: true },
}); See unit tests: brackets-manager.js/test/round-robin.spec.js Lines 212 to 225 in 8c2efdc
|
I'm going to close the issue because this is the only solution, and you can say that "players failing to match those conditions will be forfeited". Cheers! 🥂 |
Thanks for your replied.
But it return |
Ha... OK I think I designed it this way (double forfeits are only supported in round-robin), but I agree there is a use case. I'll try to fix this so you are able to have 2 forfeits. |
Due to #160
I know there can't be 2 player lose at the same time but I want to make this case works, any idea how?
Both player will be eliminated at the same time.
The text was updated successfully, but these errors were encountered: