Games::Go::Rank is a Perl module that represents a player's rank in the game of Go.
SYNOPSIS
use Games::Go::Rank;
my $black_rank = Games::Go::Rank->new(rank => '1k');
my $white_rank = Games::Go::Rank->new(rank => '2d');
if ($white_rank > $black_rank) { ... }
This class represents a player's rank in the game of Go. Rank objects can be compared to see whether two ranks are equal or whether one rank is higher than the other. Rank objects stringify to the rank notation.
Use the standard notation for ranks such as 30k, 5k, 1d, 2p and so on. You can also use other common formats such as 6-dan or 2 dan. Anything after the first k, d or p is ignored. So 6-dan* is the same as 6-dan, which is the same as 6d.
Games::Go::Rank inherits from Class::Accessor::Complex.
The superclass Class::Accessor::Complex defines these methods and functions:
carp(), cluck(), croak(), flatten(), mk_abstract_accessors(),
mk_array_accessors(), mk_boolean_accessors(),
mk_class_array_accessors(), mk_class_hash_accessors(),
mk_class_scalar_accessors(), mk_concat_accessors(),
mk_forward_accessors(), mk_hash_accessors(), mk_integer_accessors(),
mk_new(), mk_object_accessors(), mk_scalar_accessors(),
mk_set_accessors(), mk_singleton()
The superclass Class::Accessor defines these methods and functions:
_carp(), _croak(), _mk_accessors(), accessor_name_for(),
best_practice_accessor_name_for(), best_practice_mutator_name_for(),
follow_best_practice(), get(), make_accessor(), make_ro_accessor(),
make_wo_accessor(), mk_accessors(), mk_ro_accessors(),
mk_wo_accessors(), mutator_name_for(), set()
The superclass Class::Accessor::Installer defines these methods and functions:
install_accessor(), subname()
Product's homepage
Requirements:
· Perl