Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Round robin tournament problem

by blokhead (Monsignor)
on Oct 22, 2003 at 00:17 UTC ( #301122=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
          P1 P2 P3 P4 P5 P6
    
    ...
     P4    3  5  1     2  4
     P5    4  3  5  2     1
     P6    5  2  3  4  1
    
  2. or download this
    Rd 1: (P1,P2), (P3,P4), (P5, P6)
    Rd 2: (P1,P3), (P2,P6), (P4, P5)
    Rd 3: (P1,P4), (P2,P5), (P3, P6)
    Rd 4: (P1,P5), (P2,P3), (P4, P6)
    Rd 5: (P1,P6), (P2,P4), (P3, P5)
    
  3. or download this
      factorial[ ((n/2)-1) * (n-1) ] / [ factorial((n/2)-1) ]^(n-1)
    
  4. or download this
    Round 1:
    match 8 with 1, then pair up the rest
    ...
              5    4    
    
    Round X: ... keep rotating around the circle, etc
    
  5. or download this
    my @players = qw/Frodo Sam Merry Pippin Strider Gandalf Legolas Gimli/
    +;
    
    ...
        print "  $players[$p1] vs $players[$p2]\n";
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://301122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-04-19 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls