Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Games::Go::Diagram 4.211

    Download button

    No screenshots available
    Downloads: 373  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Reid Augustin | More programs
    Perl Artistic License / FREE
    December 5th, 2007, 19:29 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Games::Go::Diagram description

    Games::Go::Diagram is a Perl extension to make go diagrams similar to printed diagrams.

    Games::Go::Diagram is a Perl extension to make go diagrams similar to printed diagrams.

    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;

    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 puts 'white' or 'black' stones (possibly numbered), on the intersection selected by $coords. The caller may mark and label intersections and stones.

    put, mark, label and property are 'actions'. Actions are provisional until the node method is called. If any provisioanl actions cause a conflict, none of the actions associated with the node are applied, and the node method either calls a user-defined callback function, or returns an error.

    When a conflict occurs, the caller should dispose of the current Diagram by getting the information from each intersection and doing something (like printing it). Then the caller converts the Diagram to the starting point of the next diagram by calling the clear method. Alternatively, the caller may save the current Diagram and create the starting point for the next diagram by calling the next method. clear and next may also be called at arbitrary times (for example, to launch a variation diagram).

    'coords' may be any unique identifier for the intersection. For example:

    my $coords = 'qd'; # SGF format
    my $coords = 'a4'; # NNGS / IGS style coordinates
    my $coords = "$x,$y"; # real coordinates
    my $coords = 'George'; # as long as there's only one George

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    go diagrams | printed diagrams | Perl module | Go | printed | games

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM