Games-Go-Image2SGF
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Image2SGF.pm view on Meta::CPAN
my $time = scalar localtime;
$self->{sgf} .= <<ENDSTARTSGF;
(;GM[1]FF[4]SZ[19]
GN[Image2SGF conversion of $time.]
AP[Image2SGF by Chris Ball.]
PL[B]
ENDSTARTSGF
}
sub update_sgf {
my $self = shift;
my ($stone, $x, $y) = @_;
if ($stone == BLACK) {
push @{$self->{blackstones}}, "$y$x";
}
elsif ($stone == WHITE) {
push @{$self->{whitestones}}, "$y$x";
}
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.407 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )