A bracket sub module should be implemented for single/double elimination tournaments. Hoping to merge with the Bracket module.

Comments

Dret’s picture

Subscribe!

Our community would like to use a bracket system for our Main Tournament!

I saw the YouTube tutorial and seems to be very good for Round Robin and Ladder.

We are actually using an old self-made system (plugged into an SMF forum) and we would like to jump into Drupal!

Wesnoth Italian Community 2010 Tournament Edition

fenda’s picture

Should start to see some code popping up for this over the next week or so.
Hopefully you can help us a bit with bug testing as I'm sure you know, brackets in PHP are not so straight forward.

Oh, and we changed the name for this tournament type to 'knockout'.

Dret’s picture

Yes, of course!!

Thanks!

Dret’s picture

I'm starting to test the new feature!

I have some problem about configuring the system (consider I have saw all the video tutorial although Bracket is not described into).

I have set the players list and then I start the tournament, but I can't find any option for grouping the players (to set Who vs Who in the first round). And also when the tournament starts: the players list disappear but is not replaced by any "grid" of typical bracket tournament system.

Probably is an early version??

Thanks!
Bye.

fenda’s picture

There is no tournament bracket system implemented yet. :)
We plan to implement by May.

Dret’s picture

Sorry!

I read wrong!

:)

fenda’s picture

There has been some delays on this. Hope to get the basis out by May but double elimination and fine tuning might not pop up until June.
We moved away from the jQuery plugin above as we've figured out lighter ways to implement this now.

Basing a fair bit of the styling of the brackets on those found at binarybeast.com.

fenda’s picture

@illmasterc

In _knockout_get_tournament_rounds() we are calling match_load_tournament_matches().
That function then goes on to load all match nodes, caches them and returns them as objects.

Any changes made to these objects is also reflected anywhere else they are used in the page load. For example, its causing issues in the Match list block on the knockout tournament page view ('Empty match' error).

Specifically the following lines seem to be the culprits:

        unset($matches[$id]);
...
        'participants' => array(
          'top' => array_shift($started_matches[$i]->participants),
          'bottom' => array_shift($started_matches[$i]->participants),
        )
fenda’s picture

@illmasterc

  • Third Round rename to Third place match
  • Third Round tab shows matches in the middle of the page, it should be up at the top.
  • CSS looks great, did you test with brackets of other sizes?
  • Classes to each participant (id-XX). We will use this so that when its moused over, all other participants with same class is highlighted (to show winners paths)
  • Match IDs in the middle of the match (like binarybeast, e.g. Match 23 etc)
chrisarusso’s picture

  • Third Round rename to Third place match
  • Third Round tab shows matches in the middle of the page, it should be up at the top.
    • Can you give environment? I just tested in Chrome on Ubuntu for both preview and In-progress tournament and it floated to the top left as expected.
  • CSS looks great, did you test with brackets of other sizes?
    • Yep, tested with 1024, 64 and 32. All lined up perfectly, and mapped exactly to pixel dimensions in binarybeast. As a side note, the larger bracket generation will need to be optimized as it did take a long time to generate the 1024 participant tournament.
  • Classes to each participant (id-XX). We will use this so that when its moused over, all other participants with same class is highlighted (to show winners paths)
    • I don't really understand this. Are you talking about having winner/loser classes per match?
  • Match IDs in the middle of the match (like binarybeast, e.g. Match 23 etc)
fenda’s picture

Take a look at a binarybeast bracket and hover over a participant. All occurrences of the participant in the bracket are highlighted. We can do that with classes and a small script.

How did you test with 1024? Do you have some sort of tear script for making brackets? Need to get my hands on that lol.

chrisarusso’s picture

Okay,
team highlighting is now functional. You may want to change the default color if you don't like it, I made it intentionally standout so it's obvious.

The script for testing a tournament of size 1024 is:
Create users via drush genu (devel)
INSERT INTO tournament_participants SELECT [node_id_of_knockout_tourny],uid,1,unix_timestamp(),1,'' FROM users WHERE uid > 1 limit 1022;
In the above I was trying to have 1023 participants and had already added uid = 1

fenda’s picture

Status: Active » Closed (fixed)

We've now implemented brackets as a sub module, 'knockout'.

Dret’s picture

Great, I'll try as soon as possible!

Thanks!

Dret’s picture

I made a very early test with knockout... and seems Great!

I'll go deeply in testing the next days!

Amazing "Rank" Seeding method option... including the automatic management of "wildcards" (BYE!).

Thanks a lot... we will give you some feed as soon as possible.

A first suggestion:

- introducing possibility to set a check for "Winner" option instead of numeric score.

Bye!