Games::Go::Dg2SLPerl extension to convert Games::Go::Diagrams to Sensei's Library format | |
Download |
Games::Go::Dg2SL Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Reid Augustin
- Publisher web site:
- http://search.cpan.org/~reid/Games-Go-Sgf2Dg-4.211/Diagram.pm
Games::Go::Dg2SL Tags
Games::Go::Dg2SL Description
Perl extension to convert Games::Go::Diagrams to Sensei's Library format Games::Go::Dg2SL is a Perl module to convert Games::Go::Diagrams to Sensei's Library format.SYNOPSISuse Games::Go::Dg2SL my $dg2sl = B (options); my $sl = $dg2sl->convertDiagram($diagram);A Games::Go::Dg2SL object converts a Games::Go::Diagram object into Sensei's Library diagrams (see http://senseis.xmp.net/).Sensei's Library diagrams only support move numbers from 1-10, so make sure you call sgf2dg with arguments that specify a maximum of 10 moves per diagram and starting each diagram with move number 1. Example: sgf2dg -converter SL -m 10 -n foo.sgfSensei's Library also doesn't support labelled stones.An initial setup diagram is printed if the initial board isn't empty and doesn't have a handicap setup - i.e., only black stones, all of which are on hoshi points.Diagrams' extents are limited to the stones actually played, plus a margin. That is, if there are only stones in one corner, only that corner is printed, not the whole diagram. This is useful for analyses of local positions, but if the first ten moves of a real game are all in one corner - however unlikely that may be -, it would produce undesirable results. Requirements: · Perl
Games::Go::Dg2SL Related Software