Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.544.160 Times

Games::Tournament::RoundRobin 0.01

  Date Added: January 01, 2010  |  Visits: 1.007

Games::Tournament::RoundRobin

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)



Games::Tournament::RoundRobin is a Perl module for Round-Robin Tournament Schedule Pairings. SYNOPSIS $schedule = Games::Tournament::RoundRobin->new; $pairings = $schedule->indexesInRound($roundm); $round = $schedule->meeting($member1, [$member2, $member3]); ... Every member of a league of 2n players can be paired with every other member in 2n-1 rounds. If the league members are (Inf, 1 .. 2n-1), then in round i, i can be paired with Inf, and a can meet b, where a+b = 2i (mod 2n-1). METHODS new Games::Tournament::RoundRobin->new( v => 5, league => [Ha, Be, He]) Games::Tournament::RoundRobin->new( league => {A => $a, B => $b, C => $c}) where v (optional) is the number of league members, and league (optional) is a list (or a hash) reference to the individual unique league members. One of v, or league (which takes precedence) is necessary, and if league is not given, the members are identified by the numbers 0 .. n-1. If the league is a list (or hash) of n objects, they should be instances of a class that overloads both string quoting with a name method and arithmetical operations with an index method. The index method, called on the n objects in order, should return the n numbers, 0 .. n-1, and in that order if they are presented as an array. If they are presented as a hash, the hash is stored internally as an array and the keys are discarded. If the league is a list of strings or numbers, indexes are constructed for the values on the basis of their positions in the list, and if a hash of strings or numbers, on the basis of the lexicographic order of their keys. Each string is expected to be unique. If n is odd, an additional n-1, Bye or object (a Games::League::Member object, by default) member, depending on the type of the first member in the league, is added at the end and n is increased by 1. indexesInRound $schedule->indexesInRound($m) Returns an array reference of the pairings in round $m. This method is useful if you are using numbers to represent your league members. It is not so useful if you are using strings or objects and you dont know their index numbers. Positions in the array represent members. The values represent their partners. Each member is thus represented twice. roundsInTournament $t = $schedule-> roundsInTournament; $round1 = $t[0]; $inRound1FourthWith = $t->[0]->[3]; $inLastRoundLastWith = $$t[-1][-1]; Returns, as a reference to an array of arrays, the pairings in all rounds of the tournament. This method is useful if you are using the algorithm indexes. partner $schedule->partner($member, $m) Returns the partner of $member in round $m. membersInRound $schedule->membersInRound($m) Returns an hash reference of the pairings in round $m. This method is useful if you are using strings or objects. Keys in the hash represent league members. If the league members are objects, their names are used as keys. If 2 names are the same, the names are changed to $name.1, $name.2 etc. The values are their partners. Each player is thus represented twice. memberSchedule $schedule->memberSchedule($member) Returns, as an array reference, the partners who $member is matched with in the order in which they meet, ie round by round. meeting $schedule->meeting($member,$partner) Returns the rounds (TODO and the venue) at which $member meets $partner. meetings $schedule->meetings($member1,[$member2,$member3,...]) Returns, as an array reference, the rounds (TODO and the venue) at which $member1 meets $member2, $member3, ... index $schedule->index($member) Returns $members index, the number which is used to pair it with other members. The index is the position, 0..n-1, of the $member in the league argument to the constructor (if an array) or the constructed array (if a hash.) If $member is not a member of the array, or is itself an index, undef is returned. member $schedule->member($index) $schedule->member($name) $bye = $schedule->member( $schedule->size-1 ) Returns the member represented by $index, a number which ranges from 0..n-1, or by $name, a string. If there is no such member, undef is returned. partners $schedule->partners($index) $schedule->partners($name) Returns an array reference of all the partners of the $indexed or $named member, in index order, or the order in the league argument. realPartners $schedule->realPartners($index) Returns an array reference of all the partners of the $indexed member, excluding the Bye member. Dont use this if you have no Bye member, as it just leaves off the last member. size $schedule->size Returns the number of members in the round robin. Sometimes this may not be the same as the number of league members specified, because the array of league members takes precedence if supplied, and a bye is added if the number is odd. rounds $schedule->rounds Returns the number of rounds in the round robin. This equals the number of league members, minus 1..

Requirements: No special requirements
Platforms: Linux
Keyword: Array Gamestournamentroundrobin Index League Libraries Member Members Perl Module Returns Robin Tournament Schedule Pairings Round-robin Tournament Roundrobin Tournament Schedule
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


GAMES::TOURNAMENT::ROUNDROBIN RELATED
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  Bio::NEXUS::UnalignedBlock 0.67
Bio::NEXUS::UnalignedBlock is a Perl module that represents an UNALIGNED block of a NEXUS file. SYNOPSIS if ( $type =~ /unaligned/i ) { $block_object = new Bio::NEXUS::UnalignedBlock($type, $block, $verbose); } This is a class representing...
153.6 KB  
Libraries  -  Bio::NEXUS::SetsBlock 0.67
Bio::NEXUS::SetsBlock is a Perl module that represents SETS block of a NEXUS file. SYNOPSIS $block_object = new Bio::NEXUS::SetsBlock($block_type, $block, $verbose); Parses Sets block of NEXUS file and stores Sets data. METHODS new...
153.6 KB  
Libraries  -  Set::Infinite::Basic 0.61
Set::Infinite::Basic is a Perl module with sets of intervals. SYNOPSIS use Set::Infinite::Basic; $set = Set::Infinite::Basic->new(1,2); # [1..2] print $set->union(5,6); # [1..2],[5..6] Set::Infinite::Basic is a Set Theory module for...
49.15 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot::Grip::Round 0.000001
Gtk2::Ex::MindMapView::HotSpot::Grip::Round is a Perl module to manage a round grip type "hot spot" on a view item. SYNOPSIS use Gtk2::Ex::MindMapView::HotSpot::Grip::Round; The Gtk2::Ex::MindMapView::HotSpot::Grip::Round is a round grip...
50.18 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot::Grip::EllipseRound 0.000001
Gtk2::Ex::MindMapView::HotSpot::Grip::EllipseRound is a Perl module to manage a round grip type "hot spot" on a ellipse item. This grip differs from the standard grip with respect to where it is placed on the Gtk2::Ex::MindMapView::Item....
50.18 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Libraries  -  Mon::Client 0.11
Mon::Client is a Perl module with methods for interaction with Mon client. SYNOPSIS use Mon::Client; Mon::Client is used to interact with "mon" clients. It supports a protocol-independent API for retrieving the status of the mon server, and...
23.55 KB  
Libraries  -  Audio::MadJACK 0.04
Audio::MadJACK is a Perl module to talk to MadJACK server using Object Oriented Perl. SYNOPSIS use Audio::MadJACK; my $mj = new Audio::MadJACK( osc.udp://madjack.example.net:4444/ ); $mj->load( Playlist_A/mymusic.mp3 ); $mj->play(); The...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB