Games::Go::AGA::DataObjects::Tournament - models AGA register.tde file information
version 0.152
use Games::Go::AGA::DataObjects::Tournament; my $tournament = Games::Go::AGA::DataObjects::Tournament->new(); my $rounds = $tournament->rounds; # ref to the array of rounds
Games::Go::AGA::DataObjects::Tournament models the information about a American Go Association (AGA) go tournament.
Games::Go::AGA::DataObjects::Tournament isa Games::Go::AGA::DataObjects::Register object with additional methods:
Adds a Games::Go::AGA::DataObjects::Round to the tournament as number $round_num. Throws an exception if $round_num - 1 doesn't exist yet. If 'replace' is defined, all existing games from this $round_num are removed from the Games::Go::AGA::DataObjects::Players.
Returns the number of rounds (round 0 never exists and is not counted).
Returns the Games::Go::AGA::DataObjects::Round object for round $round_num.
Format the tournament data for sending to the AGA (ratings@usgo.org).
If $fd is defined, it is printed to. If not, it is created as a new IO::String object. $<fd> is returned, so if $fd is an IO::String object, the caller can acquire the string using $fd-string_ref> (see perldoc IO::String).
IO::String
perldoc IO::String
Reid Augustin <reid@hellosix.com>
This software is copyright (c) 2016 by Reid Augustin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Games::Go::AGA::DataObjects, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Go::AGA::DataObjects
CPAN shell
perl -MCPAN -e shell install Games::Go::AGA::DataObjects
For more information on module installation, please visit the detailed CPAN module installation guide.