1. GET SMOGON SHIRTS HERE! First time ever. Limited time only & next time the design will be different, so get it while you can!
  2. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!
  3. Welcome to Smogon Forums! Please take a minute to read the rules.

Bracketmaker

Discussion in 'Tournaments' started by Mekkah, Feb 23, 2006.

Thread Status:
Not open for further replies.
  1. Mekkah

    Mekkah
    is a Super Moderatoris a Tutor Alumnusis a Site Staff Alumnusis a Smogon IRC SOp Alumnusis a CAP Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis an Administrator Alumnus
    Super Moderator

    Joined:
    Feb 8, 2005
    Messages:
    14,047
    Old bracketmakers (open)
    I wrote a Bracketmaker in mIRC script. It allows you to compile a list of participants in tournaments, and then it will randomly make pairings for you. So far it's kinda primitive with some kinks and errors, it should eventually become a full tournament manager, in which you can keep track of winners, make next rounds, round robin options, etcetera.

    edit so I heard chaos is making one too...well use this one while it's not done yet!

    Instructions for use:

    1) Copy the code and put it in Notepad
    2) Save the document as Bracketmaker.ini (or whatever name you prefer, as long as it's .ini) in your mIRC folder
    3) Open mIRC
    4) Press Alt+R to open your Remote script editor.
    5) Go to File -> Load and load the .ini you just made
    6) Click OK, then press F2 to begin!

    Code:
    [script]
    n0=;Welcome to the Bracketmaker v1.1, made by Mekkah
    n1=;This program allows you to create a list of people participating in a Single Elimiation Tournament
    n2=;And create the brackets for this round
    n3=
    n4=;To add a name, type it in the edit box, then click Add
    n5=;To remove one, select a name from the list, then click Remove
    n6=;To edit a name in the list, select it, click edit, typ the new name in the box that appears, and click OK
    n7=;To create the brackets, add all names to the list, and click "Create brackets"
    n8=;You can edit the brackets manually for substituting and fixing errors
    n9=
    n10=;This is version 1.1 so it's fairly primitive. I'm planning on adding more, like next rounds, marking winners, etcetera.
    n11=;Things you shouldn't do:
    n12=;- only schedule one person
    n13=;- clear the list when it's empty
    n14=;- edit this code if you don't know what you're doing
    n15=;- click "Create Brackets" when not done adding persons (all persons will be removed from the list)
    n16=;This should eventually become a tournament manager
    n17=
    n18=;Have fun!
    n19=;Use this whenever you want. When spreading, please give credit to me.
    n20=;Mekkah (Smogon)
    n21=
    n22=;Version History: 
    n23=;1.0 - First try-out with nothing cool
    n24=;1.1 - Added an automatic BYE-maker - if there's one person left in the participant list, he will automatically be "paired" against "BYE".
    n25=;This person is totally random.
    n26=
    n27=alias f2 { dialog -m bracketmaker bracketmaker }
    n28=
    n29=dialog bracketmaker {
    n30=  title "Bracketmaker v1.0"
    n31=  size -l -l 300 300
    n32=  option dbu
    n33=
    n34=  text "Participants:", 1, 10 10 30 10
    n35=  list 2, 10 20 80 250
    n36=
    n37=  button "Add", 3, 100 40 50 20
    n38=  button "Remove", 4, 100 70 50 20
    n39=  button "Edit", 5, 100 100 50 20
    n40=
    n41=  edit "(name)", 6, 100 20 50 10
    n42=  button "Clear list", 7, 20 260 40 10
    n43=
    n44=  button "Create brackets", 8, 100 130 50 20
    n45=
    n46=  edit "(brackets)", 9, 160 20 100 250, multi, return
    n47=  text "Match-ups:", 10, 160 10 35 10
    n48=  text "0", 11, 42 10 10 10
    n49=  text "0", 12, 192 10 10 10
    n50=}
    n51=
    n52=;Add
    n53=on *:dialog:bracketmaker:sclick:3: {
    n54=  did -a bracketmaker 2 $did(bracketmaker,6)
    n55=  did -o bracketmaker 11 1 $did(bracketmaker,2).lines
    n56=}
    n57=;Remove
    n58=on *:dialog:bracketmaker:sclick:4: {
    n59=  did -d bracketmaker 2 $selpart
    n60=}
    n61=;Edit
    n62=on *:dialog:bracketmaker:sclick:5: {
    n63=  did -o bracketmaker 2 $selpart $?="Sub this participant for?"
    n64=}
    n65=;Clear
    n66=on *:dialog:bracketmaker:sclick:7: {
    n67=  did -r bracketmaker 2 
    n68=  did -o bracketmaker 1 0
    n69=}
    n70=;Create Brackets
    n71=on *:dialog:bracketmaker:sclick:8: {
    n72=  did -r bracketmaker 9
    n73=  var %x $calc($did(bracketmaker,2).lines / 2)
    n74=  var %n 1
    n75=  while ( %n <= %x ) {
    n76=
    n77=    var %part-1 $randpart
    n78=    if ( $did(bracketmaker,2,%lop) ) { did -d bracketmaker 2 %lop }
    n79=
    n80=    var %part-2 $randpart
    n81=    if ( $did(bracketmaker,2,%lop) ) { did -d bracketmaker 2 %lop }
    n82=
    n83=    did -i bracketmaker 9 %n %part-1 vs %part-2
    n84=    did -o bracketmaker 12 1 %n
    n85=
    n86=    inc %n
    n87=  }
    n88=  if ( $did(bracketmaker,2).lines == 1 ) { did -i bracketmaker 9 %n $randpart vs BYE }
    n89=  did -o bracketmaker 12 1 %n
    n90=  did -d bracketmaker 2 %lop
    n91=}
    n92=
    n93=;$randpart will return a random participant on the list
    n94=alias randpart {
    n95=  set %lop $rand(1,$did(bracketmaker,2).lines)
    n96=  return $did(bracketmaker,2,%lop).text
    n97=}
    n98=;$selpart will return the number of the selected participant on the list
    n99=alias selpart {
    n100=  return $did(bracketmaker,2).sel
    n101=}
    
    ---
    timw06 has a bracketmaker for your browser as well.

    http://dl.dropbox.com/u/187499/Bracketmaker/bm.html

    I can't honestly remember when I made this but I found it when I was looking for stuff to put on my shiny new smogon space. It's a fully Javascript randomiser that will generate the matches for you in a format ready for cut/paste to threads.

    Enjoy!

    If you want to download it to use offline remember to grap bm.js in the same directory as well.


    I've done some more work on the bracketmaker recently, it is now

    # faster (no more timeouts in firefox)
    # works as expected in all versions of Internet Explorer
    # has less bugs
    # gives byes automatically if you have a few less players than required

    You can access the new version on the link above.


    ---
    1 person likes this.
  2. Basics

    Basics

    Joined:
    Mar 10, 2005
    Messages:
    3,725
    blah blah i say stupid stuff after somebody did hard work
  3. giga

    giga
    is a Battle Server Moderator Alumnus

    Joined:
    Jun 15, 2005
    Messages:
    3,350
    Basics paper slips and a hat can get annoying, and this is much faster and saves time!
  4. gdpt

    gdpt

    Joined:
    Oct 10, 2005
    Messages:
    489
    and trees!
  5. Aeolus

    Aeolus Bag
    is a Tutor Alumnusis a Tournament Director Alumnusis a Site Staff Alumnusis a Battle Server Admin Alumnusis a Smogon IRC SOp Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Sep 12, 2005
    Messages:
    3,639
    Cool, I might just use this
  6. Jackal

    Jackal I'm not retarded I'm Canadian it's different
    is a Tournament Director Alumnusis a Site Staff Alumnusis a Super Moderator Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Dec 20, 2004
    Messages:
    6,152
    rofl tbh I did the whole paper slips thing for the entire world cup. Now for my next tournament I won't have too :P!
  7. Hill

    Hill ticking away, the moments that make up a dull day
    is a World Cup of Pokemon defending champion

    Joined:
    May 9, 2005
    Messages:
    247
    I assign a number for each participant/team and then use random.org custom sequence generally.

    But that might work too, i'll test it later.
  8. noobster

    noobster space cowboy
    is a Site Staff Alumnusis a Super Moderator Alumnusis a Researcher Alumnusis a Contributor Alumnuswon the 2nd Official Smogon Tournament

    Joined:
    Apr 1, 2005
    Messages:
    2,591
    Wow, I'm loving this, it looks amazing.
  9. Vulcan Fury

    Vulcan Fury
    is a Team Rater Alumnus

    Joined:
    Apr 19, 2005
    Messages:
    1,017
  10. Somebody

    Somebody

    Joined:
    Dec 20, 2004
    Messages:
    1,399
    nice job mekkah
  11. Nate

    Nate
    is a Forum Moderator Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Dec 20, 2004
    Messages:
    853
    I would use this if it wasn't for the whole single elimination thing.

    Guess it's back to random.org for me.
  12. Aeolus

    Aeolus Bag
    is a Tutor Alumnusis a Tournament Director Alumnusis a Site Staff Alumnusis a Battle Server Admin Alumnusis a Smogon IRC SOp Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Sep 12, 2005
    Messages:
    3,639
    Ok, Mekkah...you are ****ing amazing. I'm going to be using the every day. SOOO hot.
  13. Black Leather Jacket

    Black Leather Jacket

    Joined:
    Oct 12, 2005
    Messages:
    1,466
    Just curious about how you learned to do this, I'm trying to learn more about programming/computers and anything I can read up on would be most helpful.


    -Thank you.
  14. SpaceFlare

    SpaceFlare

    Joined:
    Mar 9, 2006
    Messages:
    1,308
    Looks awesome.
  15. DragonDance

    DragonDance

    Joined:
    May 6, 2006
    Messages:
    601
    Sticky, imo.
  16. Mekkah

    Mekkah
    is a Super Moderatoris a Tutor Alumnusis a Site Staff Alumnusis a Smogon IRC SOp Alumnusis a CAP Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis an Administrator Alumnus
    Super Moderator

    Joined:
    Feb 8, 2005
    Messages:
    14,047
    mIRC programming is pretty much about looking stuff up in the Help File every time you need a new sort of Identifier ($), command or mode. I learned it via simple Dutch guides, but I assume there's quite a few English ones out there too. mIRC itself has a pretty good Help file either way with examples and stuff, so I recommend you just use that.
  17. Black Leather Jacket

    Black Leather Jacket

    Joined:
    Oct 12, 2005
    Messages:
    1,466
    Thanks for the quick reply, I've been reading some pages about Mircscript and the program itself which I didn't know much about.
  18. Shiv

    Shiv mostly harmless
    is a Site Staff Alumnusis a Smogon IRC AOp Alumnusis a Forum Moderator Alumnusis a Battle Server Moderator Alumnusis a Past WCoP Winner

    Joined:
    Apr 7, 2005
    Messages:
    5,870
    Awesome stuff!
  19. TheMusicMan

    TheMusicMan

    Joined:
    Sep 24, 2005
    Messages:
    876
  20. Shiv

    Shiv mostly harmless
    is a Site Staff Alumnusis a Smogon IRC AOp Alumnusis a Forum Moderator Alumnusis a Battle Server Moderator Alumnusis a Past WCoP Winner

    Joined:
    Apr 7, 2005
    Messages:
    5,870
    Just tried it out a few time! No more randomizer for me now!
  21. meddle

    meddle
    is a Forum Moderator Alumnusis a Battle Server Moderator Alumnus

    Joined:
    May 29, 2005
    Messages:
    2,890
    This rocks; bumping for new tour hosts.
  22. Aeolus

    Aeolus Bag
    is a Tutor Alumnusis a Tournament Director Alumnusis a Site Staff Alumnusis a Battle Server Admin Alumnusis a Smogon IRC SOp Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Sep 12, 2005
    Messages:
    3,639
    lol, I thought I had an update waiting for me with this thread bumped.
  23. gene

    gene GENE
    is a Tournament Director Alumnusis a Site Staff Alumnusis a Smogon IRC AOp Alumnusis a Forum Moderator Alumnusis a Battle Server Moderator Alumnusis a Past SPL + WCoP Winner

    Joined:
    May 1, 2005
    Messages:
    2,723
    sticking this. I don't know why it wasn't a sticky in the past. This will be helpful to anyone running a tournament.
  24. Mekkah

    Mekkah
    is a Super Moderatoris a Tutor Alumnusis a Site Staff Alumnusis a Smogon IRC SOp Alumnusis a CAP Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis an Administrator Alumnus
    Super Moderator

    Joined:
    Feb 8, 2005
    Messages:
    14,047
    I might work on this somewhere in the future to let it do what I promised if demand is high enough. The question is, is demand high?
  25. Sonuis

    Sonuis Doofenshmirtz Evil Incorporated!
    is a Tournament Director Alumnusis a Site Staff Alumnusis a Forum Moderator Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Dec 24, 2004
    Messages:
    2,766
    Go update it you boob.
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)