-
Notifications
You must be signed in to change notification settings - Fork 9
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
Documentation question: workflow after generating #18
Comments
I also want to understand how the implementor is meant to associate the matches with one another and/or the overall tournament. For example, if the application has a page that shows the tournament bracket, how would the implementor know which match is in which round? |
For concreteness, here is the rspec test I'm writing while figuring out this library...
This is the output I'm seeing:
Is this close to how the |
Yes that's the intended use. |
The way I use it the list of matches is always empty ahead of calling generate.
Can you elaborate on this a bit? If I want to generate the second round of a single elimination tournament, do I not need existing matches from the first round?
|
You only need them for the |
Thanks! |
One more follow-up question about this... I am trying to plan how to associate matches with a specific round of a tournament. If I run |
You'll need to put that into your driver yourself. You can use |
Thanks! I'm studying
(This ☝️ doesn't quite match the structure I described previously with a Round model. I simplified it for discussion purposes) |
Thanks. I think I understand now. Citadel is initializing the driver with the round info in advance. So no need for So if I follow this pattern, I think mine might look something like this...
Is this making sense? |
Yep, that looks good. |
The docs explain how to generate a round of matches for a tournament. This seems straightforward for creating the first round of matches in a new tournament. For most formats (other than round robin) the subsequent rounds depend on who wins in the previous. I'm trying to understand how the additional rounds are meant to be created. Is it expected for the application to run
generate
repeatedly after each match is completed?The text was updated successfully, but these errors were encountered: