Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Round robin tournament problem

by benizi (Hermit)
on Oct 22, 2003 at 21:14 UTC ( #301370=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    +  0 1 2 3 4 5 6
    
    ...
    4  4 5 6 0 1 2 3
    5  5 6 0 1 2 3 4
    6  6 0 1 2 3 4 5
    
  2. or download this
    +  0  1  2  3  4  5  6
    
    ...
    5  5  6  0  1  2 *3* 4  3
    6  6  0  1  2  3  4 *5* 5
    7  0  2  4  6  1  3  5
    
  3. or download this
    P  1 2 3 4 5 6 7 8
    
    ...
    6  5 6 7 1 2   4 3
    7  6 7 1 2 3 4   5
    8  7 2 4 6 1 3 5
    
  4. or download this
    sub plays_in_round {
        my ($p1, $p2, $n) = @_;
    ...
        $r %= $n - 1;
        $r || ($n - 1);
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2019-11-12 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (66 votes). Check out past polls.

    Notices?