Games::Go::Sgf2Dg::Dg2ASCII(3pm) | User Contributed Perl Documentation | Games::Go::Sgf2Dg::Dg2ASCII(3pm) |
Games::Go::Sgf2Dg::Dg2ASCII - convert Games::Go::Sgf2Dg::Diagrams to ASCII diagrams
use Games::Go::Sgf2Dg::Dg2ASCII
my $dg2ascii = B<Games::Go::Sgf2Dg::Dg2ASCII-E<gt>new> (options); my $ascii = $dg2ascii->convertDiagram($diagram);
A Games::Go::Sgf2Dg::Dg2ASCII object converts a Games::Go::Sgf2Dg::Diagram object into ASCII diagrams.
A new Games::Go::Sgf2Dg::Dg2ASCII takes the following options:
Default: 19
Default: false
Default: false
Default:
sub { my ($x, $y) = @_;
$x = chr($x - 1 + ord('a')); # convert 1 to 'a',
etc
$y = chr($y - 1 + ord('a'));
return("$x$y"); }, # concatenate two letters
See also the diaCoords method below.
Default: undef
my $int = $diagram->get($dg2mp->diaCoords(3, 4));
Labels are restricted to one character (any characters after the first are discarded).
Returns the converted text.
Seems unlikely.
2019-10-27 | perl v5.30.0 |