Games-Goban
view release on metacpan or search on metacpan
lib/Games/Goban/Board.pm view on Meta::CPAN
7475767778798081828384858687888990919293
my
(
$class
,
%args
) =
@_
;
$args
{id} ||= ++
$next_id
;
my
$self
=
$class
->SUPER::new(
%args
);
$self
->{color} =
$args
{color};
$self
->{notes} =
$args
{notes};
$self
->{move} =
$args
{move};
bless
$self
=>
$class
;
}
sub
notes { (
shift
)->{notes} }
sub
position { (
shift
)->current_space_id }
sub
moved_on { (
shift
)->{move} }
sub
color {
my
$self
=
shift
;
$self
->{color} }
sub
colour {
my
$self
=
shift
;
$self
->{color} }
( run in 0.217 second using v1.01-cache-2.11-cpan-94b05bcf43c )