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 > Libraries

    Games::Go::SGF 0.05

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Simon Cozens | More programs
    Perl Artistic License / FREE
    July 12th, 2007, 20:35 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Games::Go::SGF description

    Games::Go::SGF is a Perl module that can parse and dissect Standard Go Format files.

    Games::Go::SGF is a Perl module that can parse and dissect Standard Go Format files.

    SYNOPSIS

    use Games::Go::SGF;
    my $sgf = new Games::Go::SGF($sgfdata);
    print "Game played on ".$sgf->date."n";
    print $sgf->white. " (W) vs. ".$sgf->black." (B)n";
    print "Board size: ".$sgf->size.". Komi: ".$sgf->komi."n";

    while ($move = $sgf->move($move_no++)) {
    print "$move_no: ".$move->move,"n";
    }

    This is a very simple SGF file parser, of currently limited functionality. It can read and step through SGF files, follow variations, and so on. It's good enough for getting simple statistics about games of Go, and building up Games::Go::Board objects representing games stored as SGF.

    $sgf->move returns either a normal Games::Go::SGF::Node or a Games::Go::SGF::Variation object. They behave exactly the same, but the variation object has the additional methods mainline() to get the main line of the game, variation($n) to get the first node in the n'th variation, and variations to retrieve an array of variations. $variation->move will, by default, follow the mainline.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    parse Standard Go Format files | dissect Standard Go Format files | Perl module | Games::Go::SGF | parse | dissect

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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