# $Id: Diagram.pm 200 2007-06-11 00:38:00Z reid $ # Diagram # # Copyright (C) 2005 Reid Augustin reid@netchip.com # 1000 San Mateo Dr. # Menlo Park, CA 94025 USA # # This library is free software; you can redistribute it and/or modify it # under the same terms as Perl itself, either Perl version 5.8.5 or, at your # option, any later version of Perl 5 you may have available. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. # =head1 NAME Games::Go::Diagram - Perl extension to make go diagrams similar to printed diagrams =head1 SYNOPSIS use Games::Go::Diagram my $diagram = Games::Go::Diagram->new (options); $diagram->put($coords, 'white' | 'black', ? number ?); $diagram->mark($coords); $diagram->label($coords, 'a'); $diagram->get($coords); my $new_diagram = $diagram->next; =head1 DESCRIPTION A Games::Go::Diagram object represents a diagram similar to those seen in go textbooks and magazines. Most of the properties defined in SGF FF[4] are supported. The caller Bs 'white' or 'black' stones (possibly Bed), on the intersection selected by $coords. The caller may B and B