Linux SoftwareProgrammingLibrariesGames::Go::SGF 0.01

Games::Go::SGF 0.01


Games::Go::SGF is a Perl module that can parse and dissect Standard Go Format files. SYNOPSIS use Games::Go::SGF; my $sgf
Developer:   Simon Cozens
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   3K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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
    tags get the  variation object  move move  sgf move  

    Download Games::Go::SGF 0.01


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/S/SI/SIMON/Games-Go-SGF-0.01.tar.gz


    Authors software

    Acme::OneHundredNotOut 100 (by Simon Cozens)
    Acme::OneHundredNotOut is a raise of the bat, a tip of the hat.

    I have just released my 100th module to CPAN, the first time that

    Email::Store 0.24 (by Simon Cozens)
    Email::Store is a framework for database-backed email storage.

    SYNOPSIS

    use Email::Store 'dbi:mysql:mailstore';
    Email::Sto

    B::Flags 0.01 (by Simon Cozens)
    B::Flags is a Perl module that provides a friendlier flags for B.

    SYNOPSIS

    use B::Flags;
    print B::main_root->flagspv;
    p

    B::Utils 0.30 (by Simon Cozens)
    B::Utils is a helper functions for op tree manipulation.

    SYNOPSIS

    use B::Utils;


    These functions make it easier to manipu

    B::Generate 1.06 (by Simon Cozens)
    B::Generate is a Perl module which you can create your own op trees.


    SYNOPSIS

    use B::Generate;
    # Do nothing, slowly.


    Similar software

    Games::Go::SGF 0.01 (by Simon Cozens)
    Games::Go::SGF is a Perl module that can parse and dissect Standard Go Format files.

    SYNOPSIS

    use Games::Go::SGF;
    my $sgf

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    MathML::Entities 0.13 (by Jacques Distler)
    MathML::Entities is a Perl module that can convert XHTML+MathML Named Entities to Numeric Character References.

    SYNOPSIS

    use M

    Gridlock 1.10 (by Brian Nenninger)
    Gridlock is a collection of 30 grid-based strategy board games for Linux, including Ataxx, Reversi, Checkers, Gomoku, Connect Four, a

    Games::Go::Dg2PDF 4.026 (by Reid Augustin)

    Games::Go::Dg2TeX 4.026 (by Reid Augustin)

    Games::3D 0.09 (by Tels)
    Games::3D is a package containing an object system for (not only) 3D games.

    SYNOPSIS

    use Games::3D::World;

    m

    Games::Go::Dg2Tk 4.026 (by Reid Augustin)
    Games::Go::Dg2Tk is a Perl extension to convert Games::Go::Diagrams to perl/Tk windows.

    SYNOPSIS

    use Games::Go::Dg2Tk
    my $dg2

    Games::Go::Dg2Ps 4.026 (by Reid Augustin)

    Games::Go::Dg2ASCII 4.026 (by Reid Augustin)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags